On Tue, 26 May 2026 18:27:56 GMT, Ziad El Midaoui <[email protected]> wrote:
> Issue originally happened on `TextField` but it's also reproducible in > `TextArea` when CSS option `-fx-prompt-text-fill` is used. > To fix this issue the prompt visibility is now based directly on control > focus state `control.isFocused()`. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). We probably need some discussion first. I don't think this is a bug: the prompt text should stay until the user types in something. What I think _IS_ a bug is that when the style is not set, the prompt text disappears when the text field gets focus. As an example, this is how macOS Notes Search box works, the prompt text remains in the focused field until the user types something there: <img width="349" height="118" alt="Screenshot 2026-06-01 at 13 26 09" src="https://github.com/user-attachments/assets/ff1a3dc8-5d27-434e-aa9a-a34807a2c442" /> ------------- Changes requested by angorya (Reviewer). PR Review: https://git.openjdk.org/jfx/pull/2174#pullrequestreview-4404464119 PR Comment: https://git.openjdk.org/jfx/pull/2174#issuecomment-4596241226
