Mailspring/internal_packages/composer/spec
Ben Gotow ee78090ce0 fix(composer): Change state.focusedField when clicking fields—see details
Clicking participant fields to type in them did not cause state.focusedField to change, because no onFocus events were bound to the ParticipantTextFields. Since setState was not called, the focus would appear to change but revert as soon as you touched state.

This diff also renames `onChangeEnabledFields` to `onAdjustEnabledFields` making it more clear that unlike the other handlers, it does not take a new value, it takes a set of changes. I also noticed that we /always/ focus fields when showing them, so I removed the separate focus param from it and made it adjust focus at the composer-view level only.

I also consolidated everywhere that touches `state.focusedField` so that we can keep the `_lastFocusedParticipantField` value in sync with it more easily.
2015-12-08 17:44:20 -08:00
..
collapsed-participants-spec.cjsx feat(composer): participants collapse 2015-09-14 10:37:00 -04:00
composer-view-spec.cjsx feat(tests): add integration tests 2015-12-02 13:41:14 -08:00
expanded-participants-spec.cjsx fix(composer): Change state.focusedField when clicking fields—see details 2015-12-08 17:44:20 -08:00
participants-text-field-spec.cjsx refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
quoted-text-spec.cjsx refactor(contenteditable): use DOM mutation observers 2015-12-01 15:31:03 -08:00