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

mouse click not working when used with angular-editor #248

Open
saurav-13022002 opened this issue Jan 15, 2024 · 1 comment
Open

mouse click not working when used with angular-editor #248

saurav-13022002 opened this issue Jan 15, 2024 · 1 comment

Comments

@saurav-13022002
Copy link

Hi ,
I wanted to use this library with kolkov angular editor but selection with mouse click is not working only keyboard selection works.
Any solution or work around for this.
is there any solution?

@DevanshGinilytics
Copy link

DevanshGinilytics commented Mar 15, 2024

I dug into it and found out this happens when there is tabindex="-1" applied to any parent element.

Since bootstrap modal, matDialog, matSidenav all these components use tabindex="-1" that's why issue happens only in these cases. Though it is not a perfect fix, but I fixed this by removing tabindex like so: (this could not be the ideal solution for everyone, since tabindex="-1" is there for a reason, please do your research before modifying tabindex.

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

2 participants