Skip to content

Commit

Permalink
fix: missing key
Browse files Browse the repository at this point in the history
Aslam97 committed Aug 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b404823 commit ac24e77
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -64,15 +64,15 @@ const ExampleForm = () => {
className={cn('w-full', {
'border-destructive focus-within:border-destructive': form.formState.errors.description
})}
editorContentClassName="p-5"
editorContentClassName="some-class"
output="html"
placeholder="Type your description here..."
autofocus={true}
immediatelyRender={true}
editable={true}
injectCSS={true}
shouldRerenderOnTransaction={false}
editorClassName="focus:outline-none"
editorClassName="focus:outline-none p-5"
/>
</FormControl>
<FormMessage />
1 change: 1 addition & 0 deletions src/components/minimal-tiptap/components/shortcut-key.tsx
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ export const ShortcutKey = React.forwardRef<HTMLSpanElement, ShortcutKeyProps>((
<span aria-label={ariaLabel} className={cn('inline-flex items-center gap-0.5', className)} {...props} ref={ref}>
{modifiedKeys.map(shortcut => (
<kbd
key={shortcut.symbol}
className={cn(
'inline-block min-w-2.5 text-center align-baseline font-sans text-xs font-medium capitalize text-[rgb(156,157,160)]',

2 changes: 1 addition & 1 deletion src/components/minimal-tiptap/minimal-tiptap.tsx
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ export const MinimalTiptapEditor = React.forwardRef<HTMLDivElement, MinimalTipta
<Toolbar editor={editor} />

<div className="h-full grow" onClick={handleClick}>
<EditorContent editor={editor} className={cn('minimal-tiptap-editor p-5', editorContentClassName)} />
<EditorContent editor={editor} className={cn('minimal-tiptap-editor', editorContentClassName)} />
</div>

<LinkBubbleMenu editor={editor} />

0 comments on commit ac24e77

Please sign in to comment.