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.
The error output is:
The error happens in this line:https://github.com/yansern/vue-multipane/blob/d9a17be799de24af521b3c101dc6277af08503b1/src/multipane.js#L40
The
resizer.className
here is expected to be a string, however, when click a svg tag, the classname returned is aSVGAnimatedString
object.SVGAnimatedString
objects don't implement thematch
method, so a error is thrown.To fix this bug, a simple way is changing
resizer.className
into(resizer.className + "")
, this will turn theSVGAnimatedString
objects intonull
, and no error occurs in my environment.