ITADN

PreJoin component doesn't have ability to make user name input read only

#1204ClosedRSATom 创建于 2025-09-12
R
RSATomcommented
### Describe the problem If you already have some user auth system, user name can be already known, and app may not expect it can be changed. ### Describe the proposed solution Maybe it worth just add related option to component props... ### Alternatives considered Right now I'm using following workaround in parent component: ``` useEffect(() => { const username = document.getElementById("username") as HTMLInputElement if(username) { username.disabled = true } }) ``` ### Importance nice to have
关闭于 2025-09-15 1 条评论