Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

use defaultvalue for username uncontrolled component, fixes #138)

Ginger Wong9cbb2ab2997f
diff --git a/webroot/js/components/chat/username.js b/webroot/js/components/chat/username.js
index a2ba517117..6431a81bfc 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}
/>