-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: prefix also for optiongroup #8
Comments
Hi, thanks for the suggestion -- great idea! I'll add it to the next release. |
This feature is now available in v4.12.0. |
Thank you. I'll test in a few days. I'm currently travelling. |
Thanks for reporting this. I'll roll out a fix ASAP... UPDATE: I'm not able to reproduce this issue. Can you please send me a link or upload a page that demonstrates this issue?
I think whatever code you entered was stripped. You should wrap code around `` like this: |
Oups ... right, some code were stripped. The BTW, in your code, you can use a faster method to recover data attribute Thank you |
@badulesia thanks for the updated code and protip 👍 UPDATE: I just found this: https://jsperf.com/dataset-vs-getattribute-and-setattribute/3 What's interesting is in Chrome |
Hello. |
Hello After a selection, all You should consider another method to hide the content of the first-child other than color:transparent. B. |
Hello.
The previous rule B. |
@badulesia sorry I haven't had time to look at the issue, but I found your latest comment and I'm glad there was a good resolution. I will add your change to the CSS :-). P.S. I'm aware of |
Hello.
You can set a prefix for an
<option>
, so you can display an icon (as example in the demo).Is it possible to implement the same feature for an
<optgroup>
, using the same data-prefix way ?In my case, I would like to display a country flag icon
Thank you
The text was updated successfully, but these errors were encountered: