Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095011

[Menu] CustomMenuItem.hideOnClick property may be ignored (regression)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 8u40
    • 8u20
    • javafx
    • java version "1.8.0_20-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b19)
      Java HotSpot(TM) 64-Bit Server VM (build 25.20-b19, mixed mode)

    Description

      I use a CustomMenuItem with hideOnClick = false.
      If the CustomMenuItem contains nodes with onAction property (like TextField or Button), then when the onAction handler of these nodes is invoked, the popup is dismissed => BUG.
      You have to explicitly consume the ActionEvent to keep the popup showing.

      Simple test case attached.
      Using FX 8, you can enter the TextField or press the button, the menu popup is still showing.
      Using FX 8u20, the popup is dismissed.

      Attachments

        Issue Links

          Activity

            People

              jgiles Jonathan Giles
              slions Sandra Lions-piron
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: