FIX: make it possible to edit tags on topics on mobile

This commit is contained in:
Joffrey JAFFEUX
2018-03-04 13:47:25 +01:00
committed by GitHub
parent 13eda41ff5
commit a15b2fdeca
3 changed files with 6 additions and 2 deletions
@@ -17,6 +17,7 @@ export default ComboBox.extend(Tags, {
caretUpIcon: Ember.computed.alias("caretIcon"),
caretDownIcon: Ember.computed.alias("caretIcon"),
isAsync: true,
fullWidthOnMobile: true,
init() {
this._super();
@@ -80,7 +80,10 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
this.set("computedContent", []);
if (this.site && this.site.isMobileDevice) {
this.setProperties({ filterable: false, autoFilterable: false });
this.setProperties({
filterable: isNone(this.get("filterable")) ? false : this.get("filterable"),
autoFilterable: isNone(this.get("autoFilterable")) ? false : this.get("filterable")
});
}
if (this.get("nameChanges")) {