Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WcaleNieWolny committed Jul 26, 2023
1 parent 0aeb381 commit 6a4b512
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/slate-react/src/components/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,11 @@ export const Editable = (props: EditableProps) => {
return newDomRange
}

// In firefox if there is more then 1 range and we call setDomSelection we remove the ability to select more cells in a table
if (domSelection.rangeCount <= 1) {
setDomSelection()
}

const ensureSelection =
androidInputManagerRef.current?.isFlushing() === 'action'

Expand Down

0 comments on commit 6a4b512

Please sign in to comment.