Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Focus bug on text control inside the block settings sidebar (trunk) #21027

Conversation

jorgefilipecosta
Copy link
Member

@jorgefilipecosta jorgefilipecosta commented Mar 19, 2020

Description

Fixes: #20950
The base branch of this PR is trunk because the issue does not exist in master anymore.
But this issue is preset on WordPress 5.4 RC3 and is a regression when compared with 5.3.2.

The regression happened on: #18915
It was fixed on (not part of 5.4): #19701

Unfortunately, we can not add #19701 as part of 5.4 so this PR proposes a temporary solution we can use.

cc: @ellatrix in case you know another way to fix the issue.

How has this been tested?

I added a paragraph.
I went to the advanced panel on block inspector
I typed a classname.
I selected the text on the classname field and I verified the text did not get unselected and the focus removed from the field as soon as I released the mouse.

I verified selection and multi-selection still works as expected.

@jorgefilipecosta jorgefilipecosta added the [Type] Bug An existing feature does not function as intended label Mar 19, 2020
@ItsJonQ ItsJonQ self-requested a review March 20, 2020 19:20
Copy link

@ItsJonQ ItsJonQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 LGTM! Tested locally following the test instructions. The className field and the paragraph behave as expected in regards to focus, text selection and caret placement. I didn't notice anything out of place.

@jorgefilipecosta jorgefilipecosta added the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Mar 20, 2020
@jorgefilipecosta jorgefilipecosta merged commit a28ffe7 into wp/trunk Mar 20, 2020
@jorgefilipecosta jorgefilipecosta deleted the fix/focus-bug-on-text-control-inside-the-block-settings-sidebar branch March 20, 2020 20:50
@jorgefilipecosta jorgefilipecosta removed the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants