From 0b256b211ee44b5deba584fa732bfd4040f8c13d Mon Sep 17 00:00:00 2001 From: Jim Fisher Date: Wed, 27 Oct 2021 05:12:36 +0100 Subject: [PATCH] Editable button example: emulate button to work around browser bug (#4630) It's important to have 100% working examples. Unfortunately this example I introduced has a bug on Chrome and Safari, where the cursor jumps around wrongly when using the "up" and "down" keys to navigate. This is due to a browser bug with display:inline-block elements, and there is no known workaround except to use display:inline. --- site/examples/inlines.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/site/examples/inlines.tsx b/site/examples/inlines.tsx index 424952e2c..617fe8645 100644 --- a/site/examples/inlines.tsx +++ b/site/examples/inlines.tsx @@ -249,18 +249,33 @@ const LinkComponent = ({ attributes, children, element }) => { const EditableButtonComponent = ({ attributes, children }) => { return ( - + ) }