Skip to content

Commit 3c242a9

Browse files
committed
fix nextjs bug
1 parent 31e2f45 commit 3c242a9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/core/src/editor.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Tippy popups that are appended to document.body directly
3636
.defaultStyles h2,
3737
.defaultStyles h3,
3838
.defaultStyles li {
39-
all: unset;
39+
all: unset !important;
4040
margin: 0;
4141
padding: 0;
4242
font-size: inherit;

packages/react/src/utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export const isAppleOS = () =>
2-
/Mac/.test(navigator.platform) ||
3-
(/AppleWebKit/.test(navigator.userAgent) &&
4-
/Mobile\/\w+/.test(navigator.userAgent));
2+
typeof navigator !== "undefined" &&
3+
(/Mac/.test(navigator.platform) ||
4+
(/AppleWebKit/.test(navigator.userAgent) &&
5+
/Mobile\/\w+/.test(navigator.userAgent)));
56

67
export function formatKeyboardShortcut(shortcut: string) {
78
if (isAppleOS()) {

0 commit comments

Comments
 (0)