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

Commit 2cda1ad

Browse files
author
Kent C. Dodds
committed
Allowing any type to have an addon
1 parent 7799326 commit 2cda1ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 4.2.0
2+
3+
- Allowing any type to have an addon.
4+
15
# 4.1.0
26

37
- Bug in last release

src/run/addons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default ngModule => {
1414
})
1515
});
1616
formlyConfig.templateManipulators.preWrapper.push(function(template, options) {
17-
if (options.type !== 'input' || (!options.templateOptions.addonLeft && !options.templateOptions.addonRight)) {
17+
if (!options.templateOptions.addonLeft && !options.templateOptions.addonRight) {
1818
return template;
1919
}
2020
formlyBootstrapApiCheck.warn([api], [options]);

0 commit comments

Comments
 (0)