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

Firefox Selection Issue of images when 2 tables are next to each other #9547

Open
Kr0san89 opened this issue Apr 11, 2024 · 0 comments
Open

Comments

@Kr0san89
Copy link

Kr0san89 commented Apr 11, 2024

πŸ“ Provide detailed reproduction steps (if any)

https://fiddle.tiny.cloud/1ApLmVlo72/1

  1. Run the Fiddle
  2. Click on the Image

βœ”οΈ Expected result

Image should be selected

❌ Actual result

Cursor is in the table after the one with the image

ways to improve this behavoiur altough most of the time it is still not selecting the image but the link or something else

  • remove the content_style in the fiddle
  • Add some text between the tables

❓ Things where it goes wrong

I think the issue comes from here

ClosestCaretCandidate.closestFakeCaretCandidate(rootNode, e.clientX, e.clientY).each((caretInfo) => {

where for some reason the function closestFakeCaretCandidate get's called (targetElm = image ) and comes out with the wrong table (cartInfo). But i'm bit unsure why it goes wrong

πŸ“ƒ Other details

  • Browser: Firefox only (Chrome works as it has different selection Logic)
  • OS: Linux but likely others
  • First affected version: unclear but we used latest 6.8.1 + 6.8.3
  • Worked in version: unclear

If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant