fleet/frontend/components
noahtalerman a6529cc5b0
Fix form field focus on setup pages (#2336)
- 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
2020-10-21 18:03:39 -07:00
..
App Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
AuthenticatedAdminRoutes Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
AuthenticatedRoutes Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
AuthenticationFormWrapper Add ability to prefix Fleet URLs (#2112) 2019-10-16 16:40:45 -07:00
Avatar Add ability to prefix Fleet URLs (#2112) 2019-10-16 16:40:45 -07:00
buttons Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
ClickableTableRow Fix React deprecation warnings (#1976) 2019-01-06 17:25:33 -08:00
ClickOutside Converting JS/Radium styles to SCSS (#360) 2016-11-03 14:40:54 -05:00
config/EnrollSecretTable Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
EmailTokenRedirect Fix React deprecation warnings (#1976) 2019-01-06 17:25:33 -08:00
EnsureUnauthenticated Fix React deprecation warnings (#1976) 2019-01-06 17:25:33 -08:00
flash_messages Fix React deprecation warnings (#1976) 2019-01-06 17:25:33 -08:00
Footer Upgrade Bourbon to 5.1.0 and fix deprecation warnings (#1973) 2019-01-03 12:46:55 -08:00
forms Fix form field focus on setup pages (#2336) 2020-10-21 18:03:39 -07:00
hosts Implement pagination of hosts in the web UI 2020-07-21 14:05:46 -07:00
icons Fix React deprecation warnings (#1976) 2019-01-06 17:25:33 -08:00
KolideAce Minor style fixes in frontend (#2084) 2019-07-31 12:05:10 -07:00
loaders Fix React deprecation warnings (#1976) 2019-01-06 17:25:33 -08:00
LoginRoutes Add ability to prefix Fleet URLs (#2112) 2019-10-16 16:40:45 -07:00
modals/Modal Fix React deprecation warnings (#1976) 2019-01-06 17:25:33 -08:00
NumberPill Fix React deprecation warnings (#1976) 2019-01-06 17:25:33 -08:00
packs Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
queries Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
side_panels Fix URL Prefix for Edit Pack button (#2277) 2020-08-06 16:29:24 -07:00
StackedWhiteBoxes Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
UserBlock Upgrade eslint and dependencies (#2255) 2020-07-06 19:31:48 -07:00
WarningBanner Add warning in query UI when Redis fails (#2086) 2019-08-13 09:42:58 -07:00