Handle event on disabled Node

后端 未结 1 1239
离开以前
离开以前 2021-01-24 11:57

Is there any way to handle, mouse click, for example on disabled element? My task is to have disabled list and make it enabled after double click on it.

1条回答
  •  萌比男神i
    2021-01-24 12:25

    A disabled Node does not receive mouse or key events.

    See the official documentation.

    You could wrap the node into another node and handle the mouse events there in case the child node is disabled.

    0 讨论(0)
提交回复
热议问题