gpt4 book ai didi

javascript - Sweetalert2 带国际电话输入,键盘问题

转载 作者:行者123 更新时间:2023-12-02 21:48:07 24 4
gpt4 key购买 nike

我在我的网络应用程序中使用两个库:

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 模式中时,我失去了此功能,但我不知道为什么。

谁能告诉我为什么会这样,以及我可以采取什么措施来解决这个问题?

我已经升级了所有依赖项并最小化了两个插件的选项。

最佳答案

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

关于javascript - Sweetalert2 带国际电话输入,键盘问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60199079/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com