GWT 按钮状态问题
我的 GWT 应用程序中有一个按钮最初被禁用,但在应用程序的过程中可能会被启用。
出现了一种奇怪的行为,如果有人在启用按钮之前尝试单击该按钮,则该按钮会被虚线轮廓包围,然后当它启用时,除非您单击按钮外部以删除轮廓,否则它会充当尽管它仍然被禁用。
这对我来说似乎是一个错误,但有人经历过吗?
I have a button in a GWT application that is initially disabled, but over the course of the application may become enabled.
There is a bizarre behavior occurring, where if somebody attempts to click the button before it is enabled, it is surrounded by a dotted outline, and then when it becomes enabled, unless you click outside of the button to remove the outline, it acts as though it is still disabled.
This seems like a bug to me, but anybody experience this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎如果我在启用它后调用button.setFocus(false),则不会出现此问题。对我来说仍然像是一个错误!
It seems as though if I call button.setFocus(false) after enabling it, this problem does not occur. Still seems like a bug to me!