Skip to content

Commit

Permalink
fix(QField): prevent focus when clicking on bottom slot quasarframewo…
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Sep 14, 2022
1 parent 1c618b7 commit 2596300
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/components/field/QField.js
Expand Up @@ -18,6 +18,8 @@ function getTargetUid (val) {
return val === void 0 ? `f_${uid()}` : val
}

const preventClickFocus = { click: prevent }

export default Vue.extend({
name: 'QField',

Expand Down Expand Up @@ -430,7 +432,8 @@ export default Vue.extend({

return h('div', {
staticClass: 'q-field__bottom row items-start q-field__bottom--' +
(this.hideBottomSpace !== true ? 'animated' : 'stale')
(this.hideBottomSpace !== true ? 'animated' : 'stale'),
on: preventClickFocus
}, [
this.hideBottomSpace === true
? main
Expand Down

0 comments on commit 2596300

Please sign in to comment.