Browse Source

test: revert node v16 requirement for tests (#4737)

pull/4738/head
David Luzar 4 years ago committed by GitHub
parent
commit
c3f6d6d344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/test.yml
  2. 2
      src/element/textWysiwyg.tsx

2
.github/workflows/test.yml

@ -10,7 +10,7 @@ jobs:
- name: Setup Node.js 14.x - name: Setup Node.js 14.x
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 16.x node-version: 14.x
- name: Install and test - name: Install and test
run: | run: |
yarn --frozen-lockfile yarn --frozen-lockfile

2
src/element/textWysiwyg.tsx

@ -86,7 +86,7 @@ export const textWysiwyg = ({
updatedElement: ExcalidrawTextElement, updatedElement: ExcalidrawTextElement,
editable: HTMLTextAreaElement, editable: HTMLTextAreaElement,
) => { ) => {
const currentFont = editable.style.fontFamily.replaceAll('"', ""); const currentFont = editable.style.fontFamily.replace(/"/g, "");
if ( if (
getFontFamilyString({ fontFamily: updatedElement.fontFamily }) !== getFontFamilyString({ fontFamily: updatedElement.fontFamily }) !==
currentFont currentFont

Loading…
Cancel
Save