Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit 774531c

Browse files
committed
After running this code in my application I ran into a lot of performance issues. This appears to be because of the default formatters that are added, so instead of relying on the $formatters I'm evaluating against the scope.options.formatters instead. This appears to have solved my performance issues. -🐙
1 parent 6094ee3 commit 774531c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/formly-field.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function formlyField($http, $q, $compile, $templateCache, $interpolate, formlyCo
360360
function addFormatters() {
361361
setParsersOrFormatters('formatters');
362362
const ctrl = scope.fc;
363-
if (ctrl.$formatters) {
363+
if (scope.options.formatters) {
364364
let value = ctrl.$modelValue;
365365
ctrl.$formatters.forEach((formatter) => {
366366
value = formatter(value);

0 commit comments

Comments
 (0)