Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

More example #62

Open
mardon86 opened this issue Nov 23, 2017 · 0 comments
Open

More example #62

mardon86 opened this issue Nov 23, 2017 · 0 comments

Comments

@mardon86
Copy link

There are some special cases for the change function:

  • If the bound element is an input or a textarea, the default behavior will be to update the state when the input changes. This may be overridden with a custom change function.
  • If the bound element is the same as its parent, its value will not be iterated over if it is an array.
  • If the change function returns simulacra.retainElement for a remove operation, then Node.removeChild will not be called. This is useful for implementing animations when removing an element from the DOM.
  • If the change function is applied on a definition object, it will never be a mutate operation, it will first remove and then insert in case of setting a new object over an existing object.

Would you please give more example on these. Thx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant