Skip to content

Commit

Permalink
Update isActiveElementTypeable with element.contentEditable === "plai…
Browse files Browse the repository at this point in the history
…ntext-only"
  • Loading branch information
ollimeier committed Feb 26, 2025
1 parent ef537af commit 88dab4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fontra/client/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ export async function fetchJSON(url, options) {
export function isActiveElementTypeable() {
const element = findNestedActiveElement(document.activeElement);

if (element.contentEditable === "true") {
if (
element.contentEditable === "plaintext-only" ||
element.contentEditable === "true"
) {
return true;
}
if (element.tagName.toLowerCase() === "textarea") {
Expand Down

0 comments on commit 88dab4f

Please sign in to comment.