From 09500a5f5f5500021702400c16eb899ad85a592a Mon Sep 17 00:00:00 2001 From: Mandla Mbuli Date: Sat, 21 Jun 2025 07:55:21 +0200 Subject: [PATCH] Add a None case for the laminar tutorial 'Editing counts' This make it more consistent with the other inputs and (in my opinion) works more like I would expect. If I backspace to remove everything in the input, it just puts zero there. --- doc/tutorial/laminar.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/tutorial/laminar.md b/doc/tutorial/laminar.md index e939ac4..22e7011 100644 --- a/doc/tutorial/laminar.md +++ b/doc/tutorial/laminar.md @@ -720,6 +720,7 @@ As an approximation of its behavior, itt wraps a UI-from-data binder `<--` and a value <-- valueSignal.map(_.toString), onInput.mapToValue.map(_.toIntOption).collect { case Some(newCount) => newCount + case None => 0 } --> valueUpdater, ), )