Clipboard selection interfering with single click editor

Hi Webix team,

When using clipboard: ‘selection’ and select: ‘cell’ together on a datatable with editable text cells, the single click to edit doesn’t work on empty cells.

https://snippet.webix.com/cujrajni

If you clear the data in one of the cells, you can reproduce this. It requires two clicks to start editing (if there is data in the cell, it works with 1 click as it should).

It appears to be the clipboard specifically that’s causing the issue, because select: ‘cell’ alone doesn’t cause the issue.

Is there any way around this?

Hi, what is your browser ?

I’m using chromium (linux) and after clearing a cell value, then clicked somewhere else, then click again on the empty cell, the input text is shown as expected.

Hey,

I’ve tried with Chrome, Firefox, and Edge, all with the same result. Unfortunately as a new user I can only input one image. but basically:

  1. Delete content of cell and click off the cell (cell displays as gray).
  2. First click on cell highlights the cell (white background, outlined in blue) but no caret appears and I can’t enter text.
  3. Second click, caret appears and I can enter text.

The key to reproduce was “no caret appears and i can’t enter text”.

Sound’s like a bug yes.

Here is the workaround, which consist to redefine text editor focus() function, by adding a timeout

https://snippet.webix.com/sa2wnnhd

2 Likes

Looks good, thank you!

Haha i am here to reply to you that u save 1 more guy :smiley: