mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Reset tags on category change (#6363)
This commit is contained in:
@ -5,7 +5,10 @@ import {
|
||||
} from "ember-addons/ember-computed-decorators";
|
||||
const { get, isNone, isEmpty, isPresent, run, makeArray } = Ember;
|
||||
|
||||
import { applyOnSelectPluginApiCallbacks } from "select-kit/mixins/plugin-api";
|
||||
import {
|
||||
applyOnSelectPluginApiCallbacks,
|
||||
applyOnSelectNonePluginApiCallbacks
|
||||
} from "select-kit/mixins/plugin-api";
|
||||
|
||||
export default SelectKitComponent.extend({
|
||||
pluginApiIdentifiers: ["single-select"],
|
||||
@ -211,6 +214,11 @@ export default SelectKitComponent.extend({
|
||||
!computedContentItem ||
|
||||
computedContentItem.__sk_row_type === "noneRow"
|
||||
) {
|
||||
applyOnSelectNonePluginApiCallbacks(
|
||||
this.get("pluginApiIdentifiers"),
|
||||
this
|
||||
);
|
||||
this._boundaryActionHandler("onSelectNone");
|
||||
this.clearSelection();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user