Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48977

How to detect focus of ion-select

$
0
0

Hi, in my dialogs, I want to highlight the field which has the focus. Now I’m wondering how I can do this with ion-selects. I’m using the popover mode.

Yes, there are events for onFocus and onBlur. But unfortunately, onBlur is triggered as soon as the popover opens. While this is technically correct as the focus moves to the popover and I can select the element from the list with the keyboard, it would be good UX-wise to still highlight the ion-select.

So I basically need a way to monitor whether the popover is open or not. Similar to alert mode, in case it is allowed to select multiple values.

Any idea?

Thanks in advance

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>