Replies: 3 comments 4 replies
-
|
Thanks for kind words. I didn't test the library on the modal layer so I missed this problem. The question is whether in your free moment you are able to prepare such a version with bootstarp and modal, e.g. on codepen.io or codesandbox.io? I have little experience with bootstrap and it would help me to solve this problem :) Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
I was able to prepare a bootstrap with modal :) case keyCodes.TAB:
case keyCodes.ESC:
event.stopPropagation(); // this line fixed issue
this.reset();This solves the problem but I have to test it more. Thanks for finding the bug. |
Beta Was this translation helpful? Give feedback.
-
|
Super!
Thank you very much for being so helpful and fast to solve this.
Good work!
And best wishes for the new year!
Il mar 28 dic 2021, 18:59 Grzegorz Tomicki ***@***.***> ha
scritto:
… A new version of the library 1.7.2 has appeared.
I also added an example of using bootstrap + modal + autocomplete
<https://tomik23.github.io/autocomplete/#bootstrap-modal>
—
Reply to this email directly, view it on GitHub
<#119 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXPQCG4S2HL5KPXAPNRLV3UTH3JBANCNFSM5K4JGXHQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
First of all, thanks! The library is really nice, and moreover is does what is says: it's accessible! Tested together with a colleague of mine, he has found it 'complete'. Thanks!
I use the autocomplete inside a bootstrap modal window. Unfortunately, when I press the ESC key, not only the autocomplete close, but also the modal window. I think, but I'm not really sure, that this is related to the fact that for ESC and TAB the same function is called:
But, I suppose that a more correct behaviour is to avoid to bubble up the events for ESC, otherwise the modal window (but any other handler for ESC that stays in the chain) handles the key.
It this is not the case, is possible to add an option to avoid the bubbling in some circumstances?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions