Hotfix for JS error in auto completion in firefox.
This commit is contained in:
parent
937705ccb0
commit
b284689313
@ -49,7 +49,7 @@ const PostStatusForm = {
|
|||||||
computed: {
|
computed: {
|
||||||
candidates () {
|
candidates () {
|
||||||
if (this.textAtCaret.charAt(0) === '@') {
|
if (this.textAtCaret.charAt(0) === '@') {
|
||||||
const matchedUsers = filter(this.users, (user) => (user.name + user.screen_name).match(this.textAtCaret.slice(1)))
|
const matchedUsers = filter(this.users, (user) => (String(user.name + user.screen_name)).match(this.textAtCaret.slice(1)))
|
||||||
if (matchedUsers.length <= 0) {
|
if (matchedUsers.length <= 0) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user