Skip to content

Commit 9eee0c6

Browse files
pdanpdanrstoenescu
authored andcommitted
Small tweaks for autocomplete and popup (quasarframework#1333)
1 parent cb79690 commit 9eee0c6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/components/autocomplete/QAutocomplete.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export default {
136136
: Promise.resolve()
137137
},
138138
blurHide () {
139+
this.__clearSearch()
139140
setTimeout(() => this.hide(), 300)
140141
},
141142
__clearSearch () {

src/components/context-menu/ContextMenuDesktop.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ export default {
4343
mounted () {
4444
this.target = this.$refs.popover.$el.parentNode
4545
this.target.addEventListener('contextmenu', this.__show)
46+
this.target.addEventListener('click', this.hide)
4647
},
4748
beforeDestroy () {
4849
this.target.removeEventListener('contexmenu', this.__show)
50+
this.target.removeEventListener('click', this.hide)
4951
}
5052
}

src/components/popover/QPopover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default {
7474
this.$nextTick(() => {
7575
this.anchorEl = this.$el.parentNode
7676
this.anchorEl.removeChild(this.$el)
77-
if (this.anchorEl.classList.contains('q-btn-inner')) {
77+
if (this.anchorEl.classList.contains('q-btn-inner') || this.anchorEl.classList.contains('q-if-inner')) {
7878
this.anchorEl = this.anchorEl.parentNode
7979
}
8080
if (this.anchorClick) {

0 commit comments

Comments
 (0)