我在网络应用中使用了两个库:
Sweetalert2:https://github.com/sweetalert2/sweetalert2
国际电话输入:https://github.com/jackocnr/intl-tel-input https://github.com/jackocnr/intl-tel-input
但是,当我初始化输入时,我在下拉国家/地区列表上丢失了键盘输入。
在站点的演示页面(https://intl-tel-input.com),您可以使用键盘箭头,也可以开始输入国家/地区名称来选择选项。当我将输入添加到SweetAlert2模态时,我失去了此功能,我也不知道为什么。这是一个演示:https://emergencylocate.co.uk/app/assets/InternationalTelNew/demo.html
谁能告诉我为什么会这样,以及我可以怎么解决?
我已经升级了所有依赖项,并最小化了两个插件的选项。
这是我想念的SweetAlert2中的一个选项,请确保stopKeydownPropagation: false