-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
execCommand
is asynchronous?
#21
Comments
FWIW, Chromium's tests for insertText look synchronous: https://chromium.googlesource.com/chromium/blink.git/+/refs/heads/main/LayoutTests/editing/execCommand/insert-text-not-inheriting-block-properties.html Presumably, an async focus would look something like (not sure what you're want "refocus" handling to be):
|
It's kind of unfortunate because the module now is synchronous, but with that I'd have to make every call async. But it looks about right |
See refined-github/refined-github#6348 (comment)
Maybe it's only Chromium. I wonder if reading
field.value
immediately after forces a synchronous update.The text was updated successfully, but these errors were encountered: