Using jQuery, setting Draggable on an element prevents blur from firing when you click the draggable element

后端 未结 2 1283
慢半拍i
慢半拍i 2021-01-20 18:21

Using jQuery, when you set a blur event on a text box and set another element as draggable, when you click the draggable element, the blur event does not fire in FireFox. I

2条回答
  •  没有蜡笔的小新
    2021-01-20 19:10

    It could be that the draggable label isn't focusable. Try adding a tabindex attribute to it. This way when you click on it, it'll gain focus (and hence, blur the other elements).

提交回复
热议问题