facebookarchive / draft-js

A React framework for building text editors.

Home Page:https://draftjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After insert from Mac touchbar, you can no longer delete

keweeks opened this issue · comments

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

On a Mac with the touchbar, if you select an autocomplete suggestion, you can no longer delete.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/gmertk/e61z7nfa/.

  • Type "1pm"
  • Autocomplete will suggest some other times like "8pm"
  • Select 8pm
  • After the value updates, try to delete

What is the expected behavior?

You should be able to delete

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

I've tested this on the draftjs website in Chrome (see screen recording)

Kapture 2022-06-17 at 12 12 13