GWT 按钮状态问题

发布于 2024-11-01 04:22:48 字数 167 浏览 6 评论 0原文

我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小女人ら 2024-11-08 04:22:48

似乎如果我在启用它后调用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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文