Giter VIP home page Giter VIP logo

Comments (7)

ulizko avatar ulizko commented on June 5, 2024 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.

maxvanceffer avatar maxvanceffer commented on June 5, 2024 4

#6

from vue-multipane.

maxvanceffer avatar maxvanceffer commented on June 5, 2024

Thx... will try, this hack. But as i see, developers already have a pull request, which fix this error.

from vue-multipane.

francisashley avatar francisashley commented on June 5, 2024

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.

RobbeR avatar RobbeR commented on June 5, 2024

I have the same problem, and none of the solutions above helped. Any chance to fix this in the future? Thanks!

from vue-multipane.

lkjimy avatar lkjimy commented on June 5, 2024

Having the same issue here. I have another plugin inserting svgs on the page. Error appears when the svgs are clicked.

image
image

EDIT: The solution from #6 pull request worked for me.

from vue-multipane.

wangqh avatar wangqh commented on June 5, 2024

阻止冒泡虽然能解决问题,但不太优雅;
所以希望能从根儿上解决,如:if (typeof t.className === 'string' && t.className.match('multipane-resizer'))

from vue-multipane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.