Skip to content

[ZEPPELIN-6429] Focus paragraph editor on clone/insert in New UI#5267

Open
voidmatcha wants to merge 1 commit into
apache:masterfrom
voidmatcha:fix/clone-paragraph-cursor-focus-master
Open

[ZEPPELIN-6429] Focus paragraph editor on clone/insert in New UI#5267
voidmatcha wants to merge 1 commit into
apache:masterfrom
voidmatcha:fix/clone-paragraph-cursor-focus-master

Conversation

@voidmatcha
Copy link
Copy Markdown
Contributor

What is this PR for?

After cloning or inserting a paragraph in the New UI, the cursor stays on the wrapper element instead of the editor, so you have to click before typing. This focuses the new paragraph's editor one tick after PARAGRAPH_ADDED, gated to clone/insert initiated by this client so auto-append on run and other clients' inserts don't steal focus. It also skips dirty-marking on programmatic editor setValue (isFlush) so the cloned content isn't discarded. (The clone content loss itself is handled separately in #5254 (review); this covers the cursor part.)

What type of PR is it?

Bug Fix

Todos

What is the Jira issue?

ZEPPELIN-6429

How should this be tested?

Screenshots (if appropriate)

M0_COMPARISON_master_asis-vs-tobe.mp4

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant