reagent-project / reagent-forms

Bootstrap form components for Reagent
339 stars 78 forks source link

Events don't respond to direct changes to the "document" #101

Closed NathanSmutz closed 8 years ago

NathanSmutz commented 8 years ago

The readme says this about the behavior of events:

Events are triggered whenever the document is updated, and will be executed in the order they are listed. Each event sees the document modified by its predecessor.

I'm not seeing an event trigger when the bound atom (the "document") is updated via swap! or via another event. It responds as expected when text is typed into the form.

yogthos commented 8 years ago

The events have to be added as described here. The form will not updated when the atom is manipulated externally however.