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

Commit cc8d851

Browse files
author
Kent C. Dodds
committed
6.23.4
1 parent 701629a commit cc8d851

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 6.23.4
2+
3+
## Bug Fixes
4+
5+
- Running formatters on initial load of ng-model [#423](/../../issues/423)
6+
17
# 6.23.3
28

39
## Bug Fixes

dist/formly.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! angular-formly version 6.23.3 built with ♥ by Astrism <[email protected]>, Kent C. Dodds <[email protected]> (ó ì_í)=óò=(ì_í ò)
1+
//! angular-formly version 6.23.4 built with ♥ by Astrism <[email protected]>, Kent C. Dodds <[email protected]> (ó ì_í)=óò=(ì_í ò)
22

33
(function webpackUniversalModuleDefinition(root, factory) {
44
if(typeof exports === 'object' && typeof module === 'object')
@@ -147,7 +147,7 @@ return /******/ (function(modules) { // webpackBootstrap
147147

148148
ngModule.constant('formlyApiCheck', _providersFormlyApiCheck2['default']);
149149
ngModule.constant('formlyErrorAndWarningsUrlPrefix', _otherDocsBaseUrl2['default']);
150-
ngModule.constant('formlyVersion', ("6.23.3")); // <-- webpack variable
150+
ngModule.constant('formlyVersion', ("6.23.4")); // <-- webpack variable
151151

152152
ngModule.provider('formlyUsability', _providersFormlyUsability2['default']);
153153
ngModule.provider('formlyConfig', _providersFormlyConfig2['default']);
@@ -449,7 +449,7 @@ return /******/ (function(modules) { // webpackBootstrap
449449
Object.defineProperty(exports, "__esModule", {
450450
value: true
451451
});
452-
exports["default"] = "https://github.com/formly-js/angular-formly/blob/" + ("6.23.3") + "/other/ERRORS_AND_WARNINGS.md#";
452+
exports["default"] = "https://github.com/formly-js/angular-formly/blob/" + ("6.23.4") + "/other/ERRORS_AND_WARNINGS.md#";
453453
module.exports = exports["default"];
454454

455455
/***/ },
@@ -1581,6 +1581,18 @@ return /******/ (function(modules) { // webpackBootstrap
15811581

15821582
function addFormatters() {
15831583
setParsersOrFormatters('formatters');
1584+
var ctrl = scope.fc;
1585+
if (ctrl.$formatters) {
1586+
(function () {
1587+
var value = ctrl.$modelValue;
1588+
ctrl.$formatters.forEach(function (formatter) {
1589+
value = formatter(value);
1590+
});
1591+
1592+
ctrl.$setViewValue(value);
1593+
ctrl.$render();
1594+
})();
1595+
}
15841596
}
15851597

15861598
function setParsersOrFormatters(which) {
@@ -1747,7 +1759,7 @@ return /******/ (function(modules) { // webpackBootstrap
17471759
if (!isUrl) {
17481760
return templatePromise;
17491761
} else {
1750-
var _ret = (function () {
1762+
var _ret2 = (function () {
17511763
var httpOptions = { cache: $templateCache };
17521764
return {
17531765
v: templatePromise.then(function (url) {
@@ -1760,7 +1772,7 @@ return /******/ (function(modules) { // webpackBootstrap
17601772
};
17611773
})();
17621774

1763-
if (typeof _ret === 'object') return _ret.v;
1775+
if (typeof _ret2 === 'object') return _ret2.v;
17641776
}
17651777
}
17661778

dist/formly.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/formly.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-formly",
3-
"version": "6.23.3",
3+
"version": "6.23.4",
44
"author": "Astrism <[email protected]>",
55
"contributors": [
66
"Astrism <[email protected]>",

0 commit comments

Comments
 (0)