Skip to content

Commit 09500a5

Browse files
committed
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.
1 parent fc4f6e3 commit 09500a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/tutorial/laminar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ As an approximation of its behavior, itt wraps a UI-from-data binder `<--` and a
720720
value <-- valueSignal.map(_.toString),
721721
onInput.mapToValue.map(_.toIntOption).collect {
722722
case Some(newCount) => newCount
723+
case None => 0
723724
} --> valueUpdater,
724725
),
725726
)

0 commit comments

Comments
 (0)