Skip to content

Commit

Permalink
fix(QDialog): can't open it on Safari if its not persistent (edge case)
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Jan 11, 2023
1 parent 27c4c53 commit 39f7305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/components/dialog/QDialog.js
Expand Up @@ -79,6 +79,7 @@ export default createComponent({

setup (props, { slots, emit, attrs }) {
const vm = getCurrentInstance()
const { proxy: { $q } } = vm

const innerRef = ref(null)
const showing = ref(false)
Expand Down Expand Up @@ -370,7 +371,7 @@ export default createComponent({

onBeforeUnmount(cleanup)

const backdropEvt = vm.proxy.$q.platform.is.ios === true ? 'onClick' : 'onFocusin'
const backdropEvt = $q.platform.is.ios === true || $q.platform.is.safari ? 'onClick' : 'onFocusin'

function renderPortalContent () {
return h('div', {
Expand Down

0 comments on commit 39f7305

Please sign in to comment.