mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: double click on tag INPUT breaking expected behavior (#30975)
Double clicking on the INPUT for tag entry was cause the INPUT to be selected but the actual tag entry and lookup to be hidden This adds special case handling
This commit is contained in:
parent
5a94ceda54
commit
9cc99ef6db
@ -76,8 +76,14 @@ export default class SelectKitHeader extends Component.extend(UtilsMixin) {
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// When users double click on a tag input we want to leave it open
|
||||
const hasInput =
|
||||
event.target.tagName === "INPUT" || event.target.querySelector("input");
|
||||
if (!this.selectKit.isExpanded || !hasInput) {
|
||||
this.selectKit.toggle(event);
|
||||
}
|
||||
}
|
||||
|
||||
keyUp(event) {
|
||||
if (event.key === " ") {
|
||||
|
Loading…
Reference in New Issue
Block a user