From 11711c2fe1e2f02376b1f29da001438bd3fbb665 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 29 Oct 2020 17:05:05 -0400 Subject: [PATCH] contenteditable --- core/src/components/app/app.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/src/components/app/app.scss b/core/src/components/app/app.scss index 22d3de19c50..e703dacc3ed 100644 --- a/core/src/components/app/app.scss +++ b/core/src/components/app/app.scss @@ -3,6 +3,16 @@ html.plt-mobile ion-app { user-select: none; } +/** + * This works around a WebKit issue + * where user-select: none was causing + * contenteditable to not be selectable, + * even though inputs and textareas are selectable. + */ +html.plt-mobile ion-app [contenteditable] { + user-select: text; +} + ion-app.force-statusbar-padding { --ion-safe-area-top: 20px; }