From e866b7e048d3500afed30e41d492e16128ceb40b Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Mon, 16 Dec 2024 14:10:13 +0100 Subject: [PATCH] fix: ComboBoxElement#clear to empty the field as well (#6936) (#6954) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tatu Lund Co-authored-by: Sascha Ißbrücker --- .../flow/component/combobox/testbench/ComboBoxElement.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vaadin-combo-box-flow-parent/vaadin-combo-box-testbench/src/main/java/com/vaadin/flow/component/combobox/testbench/ComboBoxElement.java b/vaadin-combo-box-flow-parent/vaadin-combo-box-testbench/src/main/java/com/vaadin/flow/component/combobox/testbench/ComboBoxElement.java index e25402fc154..75161eb8865 100644 --- a/vaadin-combo-box-flow-parent/vaadin-combo-box-testbench/src/main/java/com/vaadin/flow/component/combobox/testbench/ComboBoxElement.java +++ b/vaadin-combo-box-flow-parent/vaadin-combo-box-testbench/src/main/java/com/vaadin/flow/component/combobox/testbench/ComboBoxElement.java @@ -39,6 +39,8 @@ public class ComboBoxElement extends TestBenchElement @Override public void clear() { setValue(null); + // Setting value to null is not enough to empty the text input + executeScript("arguments[0].clear();", this); } /**