Browse Source

use defaultvalue for username uncontrolled component, fixes #138)

pull/146/head
Ginger Wong 5 years ago
parent
commit
0a3d1145f6
  1. 2
      webroot/js/components/chat/username.js

2
webroot/js/components/chat/username.js

@ -92,7 +92,7 @@ export default class UsernameForm extends Component { @@ -92,7 +92,7 @@ export default class UsernameForm extends Component {
class="appearance-none block w-full bg-gray-200 text-gray-700 border border-black-500 rounded py-1 px-1 leading-tight text-xs focus:bg-white"
maxlength="100"
placeholder="Update username"
value=${username}
defaultValue=${username}
onKeydown=${this.handleKeydown}
ref=${this.textInput}
/>

Loading…
Cancel
Save