Editor keeps previous value if I directly type into the cell without double clicking (continue previous discussion)

Tags: #<Tag:0x00007f51c16dbbd0> #<Tag:0x00007f51c16db5b8>

Hello. I’m sorry for reacting so late for the response for previous topic I’ve started. So it’s already closed and I cannot write there. Here’s the link for previous context.

I want to say that the example you’ve provided also has the same issue I was trying to explain from the beginning.

If you will not do double clicking on the cells but just enter the value into each next cell using keyboard only - it will remember previous value and will add newly entered value to previous value.

For example:

1 cell: you enter “1” - result “1”
2 cell: you enter “2” - result “12”
3 cell: you enter “3” - result “123”
and so on…

It’s important: DO NOT use double clicking on the cell to edit it. Just type directly into the cell using keyboard only.

Here I’ve recorded gif (I’m using single mouse click to choose cell - this is acceptable to reproduce it):
issue%20with%20direct%20input%20into%20next%20cell

Hi @Maximilian

Thank you for reporting this. It’s probably due to the fact that the code in this guide is a little bit outdated. I recreated your use case with more simple and modern approach to creating custom editors. This should work fine: https://jsfiddle.net/20yuawdn/

The problem occurs only when you extend from BaseEditor.
TextEditor already has correct behavior without this issue, so it will not be reproducible when you extend from it.
In my first post, I pointed to the issue in the code (that makes this behavior reproducible).

Hi @Maximilian

I see. I will check it more and update you once I have more information on the source of this problem.

Hi @Maximilian

I was curious about task and apparently you’ve been reusing the same input value. Here’s an updated demo https://jsfiddle.net/g9uwst1y/.

As @adrian.szymanski mentioned, our guide for building a custom editor is rather rusty, and it would need to be rewritten. Now, it seems thay=t we need to add more lines than necessary.