-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Description
The error output is:
TypeError: resizer.className.match is not a function
at VueComponent.onMouseDown (multipane.js?77e5:41)
The error happens in this line:
vue-multipane/src/multipane.js
Line 40 in d9a17be
| if (resizer.className && resizer.className.match('multipane-resizer')) { |
The resizer.className here is expected to be a string, however, when click a svg tag, the classname returned is a SVGAnimatedString object. SVGAnimatedString objects don't implement the match method, so a error is thrown.
To fix this bug, a simple way is changing resizer.className into (resizer.className + ""), this will turn the SVGAnimatedString objects into null, and no error occurs in my environment.
Metadata
Metadata
Assignees
Labels
No labels