mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
a6529cc5b0
- Using componentDidUpdate() to check for currentPage change in setup registration form. Initially tried adding `autofocus` prop to the first `<InputFieldWithIcon />` on each page. As seen in AdminDetails page. Didn't work. I believe React only pays attention to `autofocus` when the <input> is re-rendered. - Calling focus() on page's first input when currentPage changes and is true. Using refs callback - Delaying focus by 300ms using setTimeout because the `.user-registration__field-wrapper` has a transition duration of 300ms. Setting the inputs focus immediately creates a snapping movement and ruins the smooth transition. Fixes #936 |
||
---|---|---|
.. | ||
App | ||
AuthenticatedAdminRoutes | ||
AuthenticatedRoutes | ||
AuthenticationFormWrapper | ||
Avatar | ||
buttons | ||
ClickableTableRow | ||
ClickOutside | ||
config/EnrollSecretTable | ||
EmailTokenRedirect | ||
EnsureUnauthenticated | ||
flash_messages | ||
Footer | ||
forms | ||
hosts | ||
icons | ||
KolideAce | ||
loaders | ||
LoginRoutes | ||
modals/Modal | ||
NumberPill | ||
packs | ||
queries | ||
side_panels | ||
StackedWhiteBoxes | ||
UserBlock | ||
WarningBanner |