-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Bug: Range.includes(range, targetRange) missed for range fully inside targetRange case #4064
Comments
This issue needs more description about what the actual bug is. Please add/elaborate. If I'm thinking about what you're saying correctly, you are saying that |
@BrentFarese The name is indeed not clear for this. depends on the function description in the comment |
Got it. Do you want to submit a PR? It seems like a relatively easy fix. Might just add a |
Let's say maybe we just leave it here for now, since Range.includes for target range is indeed not used by any popular slate library as far as I know. So, if any one want to use it for range includes check (indeed intersection as we see), he need fix it first. |
Do you want to request a feature or report a bug?
report a bug.
What's the current behavior?
Range.includes(range, targetRange) does not cover
range fully inside targetRange
case, it will return false for this case. As discussed at: #3093 (comment)Slate: since #3093 until now (0.60.2)
Browser: Not related
OS: Not related
What's the expected behavior?
return true
The text was updated successfully, but these errors were encountered: