Merge pull request #3662 from thelounge/xpaw/fix-ref
Check that usernameInput ref exists
This commit is contained in:
commit
e0cd9cbcdf
@ -187,6 +187,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
onNickChanged(event) {
|
||||
// Username input is not available when useHexIp is set
|
||||
if (!this.$refs.usernameInput) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
!this.$refs.usernameInput.value ||
|
||||
this.$refs.usernameInput.value === this.previousUsername
|
||||
|
Loading…
Reference in New Issue
Block a user