Comments (12)
There is a polyfill for this: https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
from react-diagrams.
Could this be included in the documentation? The polyfill, not your view on IE :) I agree that IE is a total pain in the arse but it's still a widely used browser.
from react-diagrams.
done
from react-diagrams.
I'm confused, why has this been closed? Is the polyfil going to be included?
from react-diagrams.
no, because its up to you to include poly fills as an application developer (its not my fault that IE 11 is a colossal piece of shit :) ) I would however like another opinion on this. @gen4sp @alexisvincent @solussd
from react-diagrams.
I agree polyfills are something that the application developer needs to decide to include or not. It would be difficult to determine for the user what browsers/browser versions they want to support.
from react-diagrams.
Sure, ill do a documentation bump tonight. I will also clean up a few things
from react-diagrams.
I recommend using a ponyfil, at the library level. Note, I do not mean a polyfil.
from react-diagrams.
That'd be great, thanks for all the hard work on this project.
from react-diagrams.
https://github.com/sindresorhus/ponyfill/blob/master/readme.md
from react-diagrams.
Thanks for updating with new "closest" dependency. Can you please bump the version so Yarn can upgrade the package? I know I'm asking a lot, but a tagged release process or a changelog would also be much appreciated.
from react-diagrams.
Great, thanks.
from react-diagrams.
Related Issues (20)
- custom code
- [Bug] Right angled links are diagonal if the points are added after the link is created
- 50 Errors in build HOT 2
- BezierCurve
- Tutorial not working HOT 1
- Deserialization not working HOT 2
- Demos should be refactored to be consistent with modern react standards and styles HOT 2
- I can't see the any nodes. HOT 1
- Is there a way with smart routing to ensure that the link line is never going through the node?
- Deregister Listener when links are created
- DragNewLinkState bug when pressing down with another mouse button while dragging.
- Does storm-react-diagrams support nonce attribute for CSP?
- Node EventListeners don't work when setting a state from component
- can't find createEngine export HOT 1
- Adding NodeModel to NodeLayer set itself as its parent, but NodeModel's parent must be a Diagram
- Module '"@projectstorm/react-diagrams"' has no exported member 'AbstractReactFactory'.
- Intermittent bug in dragNewLink with allowLooseLinks = false HOT 2
- Bug: running `diagrams-demo-project` error `TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactNode'. Property 'children' is missing in type 'Element' but required in type 'ReactPortal'.`
- Deserialization isn't working properly HOT 1
- got an error in gallary demo: diagrams-demo-gallery HOT 1
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 react-diagrams.