slate-editable-table icon indicating copy to clipboard operation
slate-editable-table copied to clipboard

text selection is not clearing out when mouse downed in the avoided cells during diagonal selection

Open vamshi9 opened this issue 5 years ago • 2 comments

When diagonally selecting the cells, the default selection of text in cells is being avoided. But, when mouse downed in one of those avoided cells, the default selection is coming back on removing selection. Here are the steps to

  1. Select the cells from 0 t0 3 image
  2. by default 0 1 2 3 text gets selected so, on mouse down in cell 1 or cell 2 the default selection is throwing back image

However, on mouse down in cells from 4 to 8, this is not showing up because they are not in default range selection. What do you think could be a possible reason for this?

vamshi9 avatar Oct 06 '19 18:10 vamshi9

I know this behavior. However I don't know how to improve this behavior :sob: We need to do some investigation.

bokuweb avatar Oct 07 '19 02:10 bokuweb

I think we can dive into the window selection and clear this issue. I will let you know if I can find something out. https://developer.mozilla.org/en-US/docs/Web/API/Selection/removeRange

vamshi9 avatar Oct 07 '19 03:10 vamshi9