-
Notifications
You must be signed in to change notification settings - Fork 130
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
Selection.addRange() is deprecated #63
base: main
Are you sure you want to change the base?
Conversation
Merging ranges is deprecated for a while now https://www.chromestatus.com/features/6680566019653632. Removing all ranges before adding was suggested in https://stackoverflow.com/a/43443101.
This should be handled in https://github.com/sudodoki/toggle-selection |
@sudodoki Just to clarify -- do you mean that this pull request does not belong in copy-to-clipboard or that this change should also be applied in toggle-selection? |
It looks like it already is in |
+1 I need this change too. Doesn't work for me in some scenarios without this change. Otherwise, the user has to click twice before copying works. |
@sudodoki Would it be possible to add a maintainer to this repo to help get in some vital fixes like this one? |
can you please provide a repro case / list scenarios / investigate further. I don't think @jakubzitny wasn't able to find out the root cause, and I don't have time for it.
Sure, anyone who is willing could become one, should I add you? |
By #63 (comment) I meant that removeAllRanges is called in here https://github.com/sudodoki/toggle-selection/blob/gh-pages/index.js#L25 so this is kinda weird. Would be nice if anyone could come with env description / steps to reproduce. |
Merging ranges is deprecated for a while now https://www.chromestatus.com/features/6680566019653632.
Removing all ranges before adding was suggested in https://stackoverflow.com/a/43443101.