Quasar: Dialog doesn't autofocus "ok" button if called from a QBtnDropdown

Created on 18 Sep 2019  路  4Comments  路  Source: quasarframework/quasar

If you click on a QBtnDropdown thats open a Dialog using Dialog Plugin, it doesn't focus the "ok" button, and when you do the same with a button, it works properly.

https://jsfiddle.net/9b2oLarg/2/

Tested in Chrome 75, running Quasar 1.1.2 on jsfiddle.

bug

All 4 comments

Just open the dialog in a $nextTick to allow the focusing to work. I'll take a look, but it's such a corner case.

Yes, it is indeed a corner case, nothing serious, just an annoyance.
However, I had to put inside a setTimeout (100ms), because $nextTick doesn't worked too.

https://jsfiddle.net/svd769cm/

I found it, thank you for pointing it out.

Fix will be available in "quasar" v1.1.3.

Was this page helpful?
0 / 5 - 0 ratings