Get an error after page redirecting
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:3
- Comments:16 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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(); },
@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 thedeactivate
function on modal close, similar to this :