Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom nodes do not render properly on safari V16 browser. #203

Open
himanshu-1034 opened this issue Feb 8, 2023 · 0 comments
Open

Custom nodes do not render properly on safari V16 browser. #203

himanshu-1034 opened this issue Feb 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@himanshu-1034
Copy link

himanshu-1034 commented Feb 8, 2023

I'm submitting a bug i observed on safari


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

image

The nodes can't be seen but I can still access on click events of the nodes.

Can somebody help me

NOTE -> the flow chart is wrapped inside react-zoom-pan-pinch

MY CODE

<foreignObject x="0" y="0" height="70" width="170" style="position: relative;"><div class="height-100 width-100 d-flex justify-content-center align-items-center" style="flex-direction: column; position: fixed;"><div style="border-width: 1px; border-style: solid; border-color: var(--gray2-color); background: var(--whitebase-color); border-radius: 10px; height: calc(100% - 20px); width: calc(100% - 16px); cursor: pointer; position: relative; padding: 5px 10px; color: var(--gray2-color);"><div class="mb-5 f-12px text-ellipses">chrome.exe</div><div class="f-12px text-ellipses">15488</div><span style="color: var(--gray2-color); position: absolute; top: 10px; border: 1px solid var(--gray2-color); border-radius: 15px; padding: 0px 4px; font-size: 8px; background: var(--whitebase-color); cursor: pointer; z-index: 100; right: -8px;">&lt;</span><span style="color: var(--gray2-color); position: absolute; top: 10px; border: 1px solid var(--gray2-color); border-radius: 15px; padding: 0px 4px; font-size: 8px; background: var(--whitebase-color); cursor: pointer; z-index: 100; left: -8px;">&lt;</span></div></div></foreignObject>

The same issue can be seen here also

https://codesandbox.io/s/v3ihh1?file=/src/index.tsx

open this in safari

@amcdnl amcdnl added the bug Something isn't working label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants