quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time

Home Page:https://quasar.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

q-editor viewsource error when inside of q-popup-edit

noogen opened this issue · comments

What happened?

When using q-editor inside of q-popup-edit and allowing toggle of viewsource toolbar, it unable to find the toolbar to hide so it error out. To demonstrate, I took a copy of the QDataTable with QPopupEdit and add the viewsource toolbar to this jsfiddle to demonstrate: https://jsfiddle.net/fqrek9ds/

What did you expect to happen?

It doesn't error out. Correctly hide the toolbar as expected behavior.

Reproduction URL

https://jsfiddle.net/fqrek9ds/

How to reproduce?

  1. go to provided reproduction link.
  2. Click on the comment (editable) item.
  3. Click <> to toggle viewsource.
  4. See error on console e is undefined when it try to find e.cmd == 'viewsource'

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Firefox

Quasar info output

Directly on the web: https://cdn.jsdelivr.net/npm/quasar@2/dist/quasar.umd.prod.js

Relevant log output

TypeError: e is undefined

Specifically:  return!e.isViewingSource.value||t.find(e=>"viewsource"===e.cmd)}

Additional context

No response