RFR: 8313956: focusWithin on parents of a newly-added focused node is not updated [v2]
Michael Strauß
mstrauss at openjdk.org
Fri Aug 18 16:23:45 UTC 2023
On Fri, 18 Aug 2023 15:47:54 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
> One a side note, I remember that there is a ticket to clarify what to do when the `focusWithin` count is negative. We don't need to solve this in this PR, bur maybe for the future we should consider logging an info or something similar, in case we find another case where this can get negative.
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.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1210#issuecomment-1684148480
More information about the openjfx-dev
mailing list