Skip to content

Commit

Permalink
Fix typo in documentation.md (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
felher authored Jul 9, 2024
1 parent 3eab6fc commit fe5be8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ So here are the events that work in all browsers of interest:

### Controlled Inputs Caveats

* You can't have conflicting `controlled` blocks on the same element. You also can't have a `value <-- ???` binder outside of a controlled block on an element that already has `value` controlled. Trying to do that will throw and exception. If the `controlled` block is added to the element, it defines the sole source of truth for the `value` prop.
* You can't have conflicting `controlled` blocks on the same element. You also can't have a `value <-- ???` binder outside of a controlled block on an element that already has `value` controlled. Trying to do that will throw an exception. If the `controlled` block is added to the element, it defines the sole source of truth for the `value` prop.

* The `onInput` (or `onClick` etc.) event listener defined inside of the `controlled` block will be run before any other event listeners on this element, even if you registered those other listeners before adding the controlled block. If the controlled block is added to an element after it has already been mounted, under the hood this is achieved by removing all the Laminar listeners from the element and re-adding them in the same relative order, but **after** the controlled event listener. This is done to ensure that other event listeners do not interfere with the controlled input functionality (e.g. by stopping propagation of the event).

Expand Down

0 comments on commit fe5be8b

Please sign in to comment.