Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试重新设计Pikaday,并将年份选择替换为文本输入。但是,每当我在那里添加输入时 - 它就会被禁用。如果我检查这个元素 - 它没有被禁用,没有 z-indexed 到背景并且没有不透明度。只是不能循环。但是,在悬停时,它会将光标替换为文本编辑光标。
有谁知道它为什么会发生,以及是否可以“修复”它?
谢谢!
好的,在更好地分析代码之后 - 我看到所有模式对话框都在监听鼠标按下的事件 - 只要点击不在预期目标上,“preventDefault”就是它。.
因此,就我而言,仅应用类“pika-select”将使表单元素按预期进行交互。