use defaultvalue for username uncontrolled component, fixes #138)

This commit is contained in:
Ginger Wong 2020-09-02 22:04:19 -07:00
parent 2019d4a647
commit 0a3d1145f6

View file

@ -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}
/>