开发者

Flex tooltip disappears when button is Clicked

开发者 https://www.devze.com 2023-03-23 16:01 出处:网络
I have tooltips in flex but when a component is clicked the tooltip disappears and the user has to move mouse out of the control and then back into the control to display the tooltip.

I have tooltips in flex but when a component is clicked the tooltip disappears and the user has to move mouse out of the control and then back into the control to display the tooltip.

Is there a way to prevent the to开发者_运维问答oltip from getting destroyed on mouse click.

I tried calling e.stopImmediatePropagation(); e.preventDefault(); on mouse click event of button. also tried handling and preventing tooltipEnd and tooltipHide events but they are not fire when the button is clicked.

Thanks.


I have fixed the issue by adding a event handler to the mouseDown event and then calling preventDefault and stopImmediatePropagation there this prevents the tooltip from vanishing and the button is still clickable.

0

精彩评论

暂无评论...
验证码 换一张
取 消