Mailspring/internal_packages/composer/lib
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
..
account-contact-field.cjsx fix(theme): Dark mode styling of the from field, "More contacts" button 2015-12-07 15:05:44 -08:00
collapsed-participants.cjsx feat(keymap): add new <KeymapHandlers /> 2015-11-06 11:47:06 -08:00
compose-button.cjsx feat(tooltip): use native tooltip style 2015-10-21 11:27:57 -07:00
composer-view.cjsx fix(composer): Change state.focusedField when clicking fields—see details 2015-12-08 17:44:20 -08:00
expanded-participants.cjsx fix(composer): Change state.focusedField when clicking fields—see details 2015-12-08 17:44:20 -08:00
fields.cjsx feat(composer): participants collapse 2015-09-14 10:37:00 -04:00
file-upload.cjsx bump(electron): 0.34.3 => 0.35.1 2015-11-23 22:09:17 -08:00
image-file-upload.cjsx feat(attachments): Tons of tiny fixes to attachments, drag-and-drop attachments to other apps 2015-07-15 13:15:05 -07:00
main.cjsx refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
participants-text-field.cjsx fix(composer): Change state.focusedField when clicking fields—see details 2015-12-08 17:44:20 -08:00