RFR: 8313956: focusWithin on parents of a newly-added focused node is not updated [v2]
Marius Hanl
mhanl at openjdk.org
Fri Aug 18 21:59:36 UTC 2023
On Fri, 18 Aug 2023 16:21:00 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> The `focusWithin` count cannot be negative, and there is no possible way for applications to misuse the API to cause a negative count. If it ends up being negative, that's because of a bug, and I think that bugs should be fixed and not logged.
Yes, the reason I was asking this is that we actually have this problem right now, that it could be negative, although it should not. If we would have logged that, we probably found that bug much earlier. In any case, I think with the new logic and the `count > 0`, it is fine as is.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1210#issuecomment-1684472205
More information about the openjfx-dev
mailing list