简体   繁体   中英

Sweetalert2 with International Telephone Input, keyboard problem

I'm making use of two libraries in my web app:

Sweetalert2: https://github.com/sweetalert2/sweetalert2

International Telephone Input: https://github.com/jackocnr/intl-tel-input https://github.com/jackocnr/intl-tel-input

However, when I initialise the input I lose the keyboard input on the drop down country list.

At the site's demo page ( https://intl-tel-input.com ) you can use either the keyboard arrows, or begin to type the name of a country to select the option. When I add the input into a SweetAlert2 modal, I lose this functionality and I don't know why.

Can anyone tell me why this might be, and what I can do to resolve the matter?

I've upgraded all the dependencies and minimised the options for both plugins.

结果证明这是我错过的 SweetAlert2 中的一个选项,确保stopKeydownPropagation: false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM