gpt4 book ai didi

javascript - ExtJS : Re-selecting the same value does not fire the select event

转载 作者:行者123 更新时间:2023-12-01 01:34:11 24 4
gpt4 key购买 nike

通常,当您在组合框中选择一个项目时,您会期望它触发选择事件。但是,如果您尝试选择已选择的项目,则不会触发 select 事件。这是 ExtJs 组合框的“正常”行为。

我对 ExtJS 组合框有一个特定的需求:即使我重新选择相同的值,我也需要它来触发选择事件。但我无法让它发挥作用。任何帮助将不胜感激!

示例如下:https://fiddle.sencha.com/#view/editor&fiddle/2n11打开开发工具查看 select 事件何时被触发。

我正在使用 ExtJS Classic 6.6.0。

编辑:我回答了自己的问题并使用工作解决方案更新了 Fiddle。

最佳答案

尝试看看这个: ExtJS 4 Combobox event for selecting selected value

它适用于早期的 ExtJS 版本,但是捕获 itemlist 的点击事件也可能对您有所帮助..

关于javascript - ExtJS : Re-selecting the same value does not fire the select event,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52990869/

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