UX: closes multi-select on selection when maximum=1 (#15092)
This commit is contained in:
@@ -444,7 +444,10 @@ export default Component.extend(
|
||||
resolve(items);
|
||||
}).finally(() => {
|
||||
if (!this.isDestroying && !this.isDestroyed) {
|
||||
if (this.selectKit.options.closeOnChange) {
|
||||
if (
|
||||
this.selectKit.options.closeOnChange ||
|
||||
(isPresent(value) && this.selectKit.options.maximum === 1)
|
||||
) {
|
||||
this.selectKit.close(event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user