Skip to content

Commit d4ccebb

Browse files
committed
fix(QSelect): revert reactive hasDialog quasarframework#7061 quasarframework#7062 quasarframework#7068
1 parent a538d9c commit d4ccebb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

ui/src/components/select/QSelect.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ export default Vue.extend({
120120
dialog: false,
121121
optionIndex: -1,
122122
inputValue: '',
123-
dialogFieldFocused: false,
124-
hasDialog: false
123+
dialogFieldFocused: false
125124
}
126125
},
127126

@@ -370,15 +369,14 @@ export default Vue.extend({
370369
keydown: this.__onTargetKeydown,
371370
keyup: this.__onTargetKeyup,
372371
keypress: this.__onTargetKeypress,
373-
focus: this.__selectInputText
372+
focus: this.__selectInputText,
373+
click: e => {
374+
this.hasDialog === true && stop(e)
375+
}
374376
}
375377

376378
on.compositionstart = on.compositionupdate = on.compositionend = this.__onComposition
377379

378-
if (this.hasDialog === true) {
379-
on.click = stop
380-
}
381-
382380
return on
383381
}
384382
},

0 commit comments

Comments
 (0)