Skip to content

Dismiss keyboard when non-textual block is selected#341

Merged
daniloercoli merged 1 commit intomasterfrom
issue/308-hide-keyboard-when-no-textual-block-selected
Dec 10, 2018
Merged

Dismiss keyboard when non-textual block is selected#341
daniloercoli merged 1 commit intomasterfrom
issue/308-hide-keyboard-when-no-textual-block-selected

Conversation

@daniloercoli
Copy link
Copy Markdown
Contributor

This PR fixes #308 by making sure that to call blur on the textual field that lost the focus.

React Native Aztec Wrapper PR is here:wordpress-mobile/react-native-aztec#93

GB side PR: WordPress/gutenberg#12765

Steps to repro:

  • Tap on a para block
  • Tap on the page break block
  • The block holder should be visible on the page break block, and the keyboard dismissed
  • Repeat the steps above by tapping on any of the TextInput "block", and then tap on another kind of block --> the keyboard should be visible only when the focus is on a TextInput field.

Note: The caret is still visible (and blinking) in the TextInput "powered" block that lost the focus. We will fix this in another PR.

Copy link
Copy Markdown
Contributor

@mzorz mzorz left a comment

Choose a reason for hiding this comment

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

LGTM 👍 remember to update the hashes once Gutenberg-side PR gets merged

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.

2 participants