question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get an error after page redirecting

See original GitHub issue

I get an error Cannot read property 'blur' of undefined after the page changed. This occurred randomly but as I noticed, it happens when redirecting from page that contains searchable multiselect to others only.

For example, my homepage has searchable multiselect, I go to another page by clicking on the link on my page, 4-5 seconds after that the error displayed.

I took a look into the error and found that the deactivate() in multiselectMixins.js was called.

It’s understandable that the multiselect should be deactivated before redirecting but I have no idea why the error displayed after the page changed.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
maltegrossecommented, Oct 23, 2019

I got the same issue by having multiselect in a modal. If the multiselect is focused, and the modal closed by keypress (esc), the blur error occurs. workaround as fatihpense mentioned: ref the multiselect, but i place the deactivate() function in beforeDestroy(){ this.$refs.myMultiSelect.deactivate(); },

3reactions
pututbawonocommented, Mar 14, 2020

@mydnic I also got the same problem, and it occured when the closing the modal while the multiselect is opened. The solution is actually the same as before, by using ref on the multiselect, and then call the deactivate function on modal close, similar to this :

closeModal() {
   this.show = false;
   this.$refs.myMultiselect.deactivate();
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix The ERR_TOO_MANY_REDIRECTS Error - Kinsta
This error happens when the browser can't establish a connection between the initial page and the destination page in a redirect. The main ......
Read more >
How To Fix The Page Isn't Redirecting Properly!
This error message is always caused by a redirect misconfiguration on the site where you're encountering issues. However, there might be a ...
Read more >
How to Fix "The Page isn't Redirecting Properly" Message?
The error actually means that the site continues to be redirected cyclically between different addresses and may have entered into an infinite ...
Read more >
What is ERR_TOO_MANY_REDIRECTS and how to fix it
The error too many redirects is shown when the browser can't establish a connection between the initial page and the destination page in...
Read more >
Why Does My Website Have a Redirect Loop? - WebFX
If your site still shows a redirect error after clearing your browser, your redirects are not set up correctly. This means that in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found