Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: undefined is not an object (evaluating 'this.$refs.messageAction.$refs') #2461

Open
taoeffect opened this issue Dec 16, 2024 · 1 comment

Comments

@taoeffect
Copy link
Member

Problem

While testing our groupincome.app site on iOS (mobile Safari), I think I did something in the chat that triggered this error:

TypeError: undefined is not an object (evaluating 'this.$refs.messageAction.$refs')

It didn't seem to have any visible effect on the UI, but it probably shouldn't happen.
Screenshot 2024-12-15 at 6 10 27 PM

Solution

Find out what the problem is and fix it. The related code is in MessageBase.vue:

    openMenu () {
      this.$refs.messageAction.$refs.menu.handleTrigger()
    },
@pieer
Copy link
Collaborator

pieer commented Dec 28, 2024

The error probably occurs because of the combination: longPress on the message being edited.
The reason for this is that messageAction is only rendered when the component is not edited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants