diff --git a/demo-v24/src/main/java/org/vaadin/miki/demo/builders/SuperBigDecimalFieldBuilder.java b/demo-v24/src/main/java/org/vaadin/miki/demo/builders/SuperBigDecimalFieldBuilder.java index 054ce0f..f89dd22 100644 --- a/demo-v24/src/main/java/org/vaadin/miki/demo/builders/SuperBigDecimalFieldBuilder.java +++ b/demo-v24/src/main/java/org/vaadin/miki/demo/builders/SuperBigDecimalFieldBuilder.java @@ -10,24 +10,25 @@ /** * Supports content for {@link SuperBigDecimalField}. + * * @author miki * @since 2021-01-15 */ @Order(25) public class SuperBigDecimalFieldBuilder implements ContentBuilder { - @Override - @SuppressWarnings("squid:S5411") // no way around boxed value - public void buildContent(SuperBigDecimalField component, Consumer callback) { - final Checkbox allowScientificNotation = new Checkbox("Support scientific notation as input? (format: 1 + 3 e 2)?"); - allowScientificNotation.addValueChangeListener(event -> { - if(event.getValue()) - component.withMaximumExponentDigits(2) - .withMaximumSignificandFractionDigits(3) - .withMaximumSignificandIntegerDigits(1); - else - component.setMaximumExponentDigits(0); - }); - callback.accept(new Component[]{allowScientificNotation}); - } + @Override + @SuppressWarnings("squid:S5411") // no way around boxed value + public void buildContent(SuperBigDecimalField component, Consumer callback) { + final Checkbox allowScientificNotation = new Checkbox("Support scientific notation as input? (format: 1 + 3 e 2)?"); + allowScientificNotation.addValueChangeListener(event -> { + if (event.getValue()) + component.withMaximumExponentDigits(2) + .withMaximumSignificandFractionDigits(3) + .withMaximumSignificandIntegerDigits(1); + else + component.setMaximumExponentDigits(0); + }); + callback.accept(new Component[]{allowScientificNotation}); + } } diff --git a/pom.xml b/pom.xml index 70ace6d..b9d9bf1 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ 17 17 UTF-8 - 24.5.0 + 24.5.8 \ No newline at end of file diff --git a/superfields/pom.xml b/superfields/pom.xml index d2c430d..26dd60d 100644 --- a/superfields/pom.xml +++ b/superfields/pom.xml @@ -15,7 +15,7 @@ 17 17 UTF-8 - 24.5.0 + 24.5.8 3.1.2 3.4.1 diff --git a/superfields/src/main/java/org/vaadin/miki/superfields/text/SuperTextField.java b/superfields/src/main/java/org/vaadin/miki/superfields/text/SuperTextField.java index 99d02f9..7cc2870 100644 --- a/superfields/src/main/java/org/vaadin/miki/superfields/text/SuperTextField.java +++ b/superfields/src/main/java/org/vaadin/miki/superfields/text/SuperTextField.java @@ -8,6 +8,7 @@ import com.vaadin.flow.component.dependency.CssImport; import com.vaadin.flow.component.dependency.JsModule; import com.vaadin.flow.component.textfield.TextField; +import com.vaadin.flow.dom.DisabledUpdateMode; import com.vaadin.flow.shared.Registration; import org.vaadin.miki.events.text.TextSelectionListener; import org.vaadin.miki.events.text.TextSelectionNotifier; @@ -117,7 +118,7 @@ private void selectionChanged(int start, int end, String selection) { this.delegate.fireTextSelectionEvent(true, start, end, selection); } - @ClientCallable + @ClientCallable(DisabledUpdateMode.ALWAYS) // fixes #531 private void performDelayedInitialisation() { // fixes #243 this.delegate.reinitialiseListeners();