add setCursor on change in Editable #637
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #540
@raineorshine Raine, these days i was thinking a lot about this issue and trying different options. These 2 lines of code make sorting working in someway, but break backspace logic and cause some bugs. I think i should have published it earlier in order to get different feedbacks and opinions, sorry for that. :( The task is exciting and i'm ready to continue working on it, also it gave better understanding of current codebase, but takes a lot of time.
As i see, we just need to re-execute
getThoughtsSorted
in Subthought compoentnt and set the cursor back, but the devil in the detailsI also tried dispatching
setCursor
inonChange
method of Editable component, it sorted thoughts but Editable component lose focus after throttledthoughtChangeHandler
function invocation. Maybe the problem is that value of Thought changed.What do you think about it?