question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Range.hasEndAtEndOf doesn't work for inline nodes

See original GitHub issue

Do you want to request a feature or report a bug?

bug

What’s the current behavior?

selection.hasEndAtEndOf doesn’t work if you pass inline node in it.

https://jsfiddle.net/fj9dvhom/577/ http://recordit.co/XMfNjE5Lpq Windows 10, Google Chrome Version 67.0.3396.87 (Official Build) (64-bit), slate@0.34.0

What’s the expected behavior?

selection.hasEndAtEndOf works for inline nodes

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ianstormtaylorcommented, Aug 8, 2018

@travigd that’s very fair, I agree with you. I think we can handle that discussion in https://github.com/ianstormtaylor/slate/issues/1914

1reaction
travigdcommented, Aug 8, 2018

Whoops, I forgot I opened that. Thanks!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Range.setStartAfter() in Chrome does not work correctly with ...
Does anyone have an explanation or a work around for Chrome? update: it appears inline elements are broken in chrome for this. Using...
Read more >
Changelog - Slate
This is a list of changes to Slate with each new release. Until 1.0 is released, breaking changes will be added as minor...
Read more >
Discussion: Inline nodes with content - Show - ProseMirror
This topic is about the question of how to deal with inline nodes with ... Marked ranges/decorations don't work for us for several...
Read more >
Range.setStartAfter() in Chome does not work correctly with ...
xtechforum.com: Range.setStartAfter() in Chome does not work correctly with inline elements https://code.google.com/p/chromium/issues/detail?id=586964
Read more >
Inline elements - HTML: HyperText Markup Language | MDN
Note: An inline element does not start on a new line and only takes up as much width as necessary. Inline vs. block-level...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found