Skip to content

Commit

Permalink
chore(portable-text-editor): remove and resolve TODO regarding spellc…
Browse files Browse the repository at this point in the history
…heck
  • Loading branch information
skogsmaskin committed Feb 10, 2022
1 parent d9d5b89 commit d99c2ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function useSpellcheck(): boolean {
return useMemo(() => {
// Chrome 96. has serious perf. issues with spellchecking
// https://bugs.chromium.org/p/chromium/issues/detail?id=1271918
// TODO: check up on the status of this.
// This issue is verified fixed in Chrome 97.
const spellCheckOption = editor.portableTextFeatures.types.block.options?.spellCheck
const isChrome96 =
typeof navigator === 'undefined' ? false : /Chrome\/96/.test(navigator.userAgent)
Expand Down

3 comments on commit d99c2ff

@vercel
Copy link

@vercel vercel bot commented on d99c2ff Feb 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

studio-workshop – ./dev/workshop

studio-workshop-git-next.sanity.build
studio-workshop.sanity.build

@vercel
Copy link

@vercel vercel bot commented on d99c2ff Feb 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

@vercel
Copy link

@vercel vercel bot commented on d99c2ff Feb 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

perf-studio – ./

perf-studio.sanity.build
perf-studio-git-next.sanity.build

Please sign in to comment.