Comments (7)
@maxvanceffer
I also had this error with svg files.
I just add to the "mousedown" event handler with the "stop" modifier
<div class="sort-icon" @mousedown.stop>
<svg>...</svg>
</div>
from vue-multipane.
from vue-multipane.
Thx... will try, this hack. But as i see, developers already have a pull request, which fix this error.
from vue-multipane.
Unfortunately it is not always possible to add @mousedown.stop
above the svg.
Another solution would be to suppress the error in a component, page or layout file further up the component tree:
errorCaptured(error, vm, info) {
if (error.message === 't.className.match is not a function') {
return false // prevent the error from propagating
}
}
from vue-multipane.
I have the same problem, and none of the solutions above helped. Any chance to fix this in the future? Thanks!
from vue-multipane.
Having the same issue here. I have another plugin inserting svgs on the page. Error appears when the svgs are clicked.
EDIT: The solution from #6 pull request worked for me.
from vue-multipane.
阻止冒泡虽然能解决问题,但不太优雅;
所以希望能从根儿上解决,如:if (typeof t.className === 'string' && t.className.match('multipane-resizer'))
from vue-multipane.
Related Issues (20)
- iframe support
- Bug : Resizing width when i resize height HOT 1
- Cannot combine vertical and horizontal panes HOT 6
- resizer does not work properly if its left or upper pane has flex-grow of 1
- Error in event handler for "paneResizeStop": "TypeError: line[i] is undefined" HOT 1
- Incorrect import example HOT 1
- Resizer doesn't work on mobile phones
- Persist and restore resized size HOT 1
- Vue-multipane not working with Vue-apexchart HOT 1
- Cannot resize when adding custom resize handles. HOT 3
- horizontal/vertical are backwards
- Text creates scaling issues (vertical)
- Resizing is not working with touch devices
- Need guide on paneresizestart use !
- Error occur when clicking svg tags HOT 1
- 错误提交,待删除!
- Publish latest version to npm HOT 1
- vue3/nuxt3 HOT 5
- custom divider nudges to the left each time you click
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-multipane.