HomePhabricator
Diffusion Comm 0594d6438ca2

[web] Add `nameInputRef` back to `ThreadSettingsGeneralTab`

Description

[web] Add nameInputRef back to ThreadSettingsGeneralTab

Summary:
Bring back nameInputRef to ThreadSettingsGeneralTab using the React.useRef() hook.

We add nameInputRef.current?.focus() to the useEffect so the input is focused when it appears.


Depends on D3828

Test Plan:

  1. Open ThreadSettingsModal
  2. Ensure that the thread name input is focused

Reviewers: def-au1t, palys-swm

Reviewed By: palys-swm

Subscribers: ashoat, Adrian, karol-bisztyga, yayabosh

Differential Revision: https://phabricator.ashoat.com/D3832

Details

Provenance
atulAuthored on Apr 28 2022, 2:03 PM
Reviewer
tomek
Differential Revision
D3832: [web] Add `nameInputRef` back to `ThreadSettingsGeneralTab`
Parents
rCOMMf57c68e54724: [web] Push `onChangeThreadType` callback down to `ThreadSettingsPrivacyTab`…
Branches
Unknown
Tags
Unknown