Fixing select2 placeholders and reactivity issues

This commit is contained in:
Bruno Alves de Faria committed 2017-04-19 10:07:48 -03:00
1 parent 2e5f6299cc
commit 98c052c4b7
3 files changed
+7 -9

No files matched your search

@@ -98,7 +98,7 @@ OHIF.mixins.select2 = new OHIF.Mixin({
const currentValue = component.value();
Tracker.afterFlush(() => {
rebuildSelect2();
component.value(currentValue);
component.$element.val(currentValue);
});
} else {
rebuildSelect2();
@@ -7,11 +7,9 @@
this.wrappers
)
options=(clone this.options
multiple=(valueIf this.multiple true false)
placeholder=this.placeholder
minimumResultsForSearch=(valueIf this.hideSearch
-1 this.minimumResultsForSearch
)
multiple=(choose this.options.multiple this.multiple false)
placeholder=(choose this.options.placeholder this.placeholder)
minimumResultsForSearch=(valueIf this.hideSearch -1 this.options.minimumResultsForSearch)
)
)}}
{{>UI.contentBlock}}