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

Pressing Arrow Down Button On Keyboard Make Caption Field Longer On Image Block #14114

Closed
achmedislamic opened this issue Feb 26, 2019 · 3 comments
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended

Comments

@achmedislamic
Copy link

achmedislamic commented Feb 26, 2019

Describe the bug
When you using Image Block, there is a caption field below the image. When you press the arrow down button on your keyboard, the image block becoming longer.

To Reproduce
Steps to reproduce the behavior:

  1. Add or edit post using Gutenberg Editor
  2. Insert image
  3. Click the caption field
  4. Press the arrow down button on your keyboard

Expected behavior
The cursor should go to the next block

Screenshots
bug-caption-wordpress-gutenberg

Desktop (please complete the following information):

  • OS: Windows 10 October 2018 Update
  • Browser: Google Chrome
  • Version 72

Additional context

  • Latest Wordpress 5.1
  • Using PHP 7.3.2
@youknowriad
Copy link
Contributor

@iseulde any idea about this. I feel I saw something related to this recently in one of your PRs.

@youknowriad youknowriad added [Type] Bug An existing feature does not function as intended [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable labels Feb 27, 2019
@ellatrix
Copy link
Member

We've never had any logic for this in the image block I think. I'll have a look.

@ellatrix
Copy link
Member

What should the behaviour here be? Should we break out only when the caret is at the end and enter is pressed twice? Or should this only happen in the middle of the text?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants