mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-10 13:08:21 +01:00
Et2TreeDropdown: Fix selecting the current value does not close dropdown
This commit is contained in:
parent
5b59b4ac5b
commit
1c8dfb7b2d
@ -1050,8 +1050,12 @@ export class Et2TreeDropdown extends SearchMixin<Constructor<any> & Et2InputWidg
|
|||||||
@blur=${this.handleInternalBlur}
|
@blur=${this.handleInternalBlur}
|
||||||
@et2-click=${(e) =>
|
@et2-click=${(e) =>
|
||||||
{
|
{
|
||||||
// Always hide the popup when a tree item is clicked
|
// Hide the popup when a tree item is clicked
|
||||||
// this.hide();
|
if(this._close_on_select || !this.multiple)
|
||||||
|
{
|
||||||
|
this.hasFocus = false;
|
||||||
|
this.hide();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
@keydown=${this.handleComboboxKeyDown}
|
@keydown=${this.handleComboboxKeyDown}
|
||||||
@sl-selection-change=${this.handleTreeChange}
|
@sl-selection-change=${this.handleTreeChange}
|
||||||
|
Loading…
Reference in New Issue
Block a user