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

Property 'caretRangeFromPoint' is missing in Document #6937

Closed
philong6297 opened this issue Sep 26, 2018 · 4 comments
Closed

Property 'caretRangeFromPoint' is missing in Document #6937

philong6297 opened this issue Sep 26, 2018 · 4 comments

Comments

@philong6297
Copy link

philong6297 commented Sep 26, 2018

I have this issue:
capture
How can i fix it?
flow version: 0.81.0

@jbrown215
Copy link
Contributor

You can make a PR to this repo. You probably want to change this file: https://github.com/facebook/flow/blob/master/lib/dom.js#L614

@philong6297
Copy link
Author

Can i ask you how to extends the type of 'document' so i can just only declare caretRangeFromPoint property in local without edit the module

@jbrown215
Copy link
Contributor

I'm not sure myself. Looks like this was discussed before: #396
As a temporary fix, you can always add a suppression comment.

You might want to reconsider if you should use that function at all. From the documentation, it looks like it's not well supported and isn't going to be well supported: https://developer.mozilla.org/en-US/docs/Web/API/Document/caretRangeFromPoint

@wilsonshakespeare
Copy link

Please help take a look at this issue: Seems unattended for some time
#5883

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

3 participants