From 0a3d1145f6494b62285ae21a223eef22b27d62b8 Mon Sep 17 00:00:00 2001 From: Ginger Wong Date: Wed, 2 Sep 2020 22:04:19 -0700 Subject: [PATCH] use defaultvalue for username uncontrolled component, fixes #138) --- webroot/js/components/chat/username.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/components/chat/username.js b/webroot/js/components/chat/username.js index a2ba51711..6431a81bf 100644 --- a/webroot/js/components/chat/username.js +++ b/webroot/js/components/chat/username.js @@ -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} />