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

[TextArea] Caret disappear after pressing backspace to clear the content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 8u40
    • javafx
    • Windows 7 64

      When deleting the last character in a textarea by pressing backspace, the caret disappear.

      To reproduce:

      public class AppTest extends Application {

      private Scene scene;

      @Override
      public void start(Stage stage) {
      // create scene
      TextArea t = new TextArea("");
      TextArea t2 = new TextArea("");

      VBox box = new VBox();
      box.getChildren().addAll(t, t2);

      scene = new Scene(box, 400, 600);
      stage.setScene(scene);

      stage.show();
      }
      public static void main(String[] args) {
      launch(args);
      }
      }

      1) Type "aa" in the first textarea
      2) Click in the second textarea
      3) Click back in the first text area.
      4) Press backspace to clear the text. Once the textarea is cleared, the caret is no longer visible.

            zelmidaoui Ziad El Midaoui
            rlebeljfx Robert Lebel (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: