diff --git a/react/src/NoChangePassword.tsx b/react/src/NoChangePassword.tsx index ba41c74..eb13e58 100644 --- a/react/src/NoChangePassword.tsx +++ b/react/src/NoChangePassword.tsx @@ -90,6 +90,7 @@ class NoChangePassword extends React.Component { this.props.onOk(wifiConfigSettings); - }); + },100); } } @@ -219,9 +220,10 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })( let passwordInput = this.refPassword.current; if (passwordInput) { - passwordInput.value = ""; passwordInput.type = "text"; + passwordInput.value = ""; } + this.setState({newPassword: ""}); } handleChannelChange(e: any) { @@ -247,9 +249,10 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })( const handleClose = () => { this.preventPasswordPrompt(); + // let preventPasswordPrompt changes settle (it's HARD to prevent a password prompt) setTimeout(()=> { onClose(); - }); + },100); }; return (