Update dependency slate-react to v0.86.0 (#140)
* Update dependency slate-react to v0.86.0 * Update ColorPickerToolbarDropdown.tsx Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Lautzenheiser <lautzd@gmail.com>
This commit is contained in:
parent
0dfc31fd80
commit
42f63a21b0
@ -124,7 +124,7 @@
|
||||
"slate": "0.86.0",
|
||||
"slate-history": "0.85.0",
|
||||
"slate-hyperscript": "0.77.0",
|
||||
"slate-react": "0.83.2",
|
||||
"slate-react": "0.86.0",
|
||||
"stream-browserify": "3.0.0",
|
||||
"styled-components": "5.3.6",
|
||||
"symbol-observable": "4.0.0",
|
||||
|
@ -53,7 +53,7 @@ const ColorPickerToolbarDropdown: FC<ColorPickerToolbarDropdownProps> = ({
|
||||
setSelectedColor(value);
|
||||
|
||||
Transforms.select(editorRef as BaseEditor, editor.selection);
|
||||
ReactEditor.focus(editorRef as ReactEditor);
|
||||
ReactEditor.focus(editorRef as unknown as ReactEditor);
|
||||
|
||||
setMarks(editor, { [type]: value });
|
||||
}
|
||||
@ -72,7 +72,7 @@ const ColorPickerToolbarDropdown: FC<ColorPickerToolbarDropdownProps> = ({
|
||||
const clearColor = useCallback(() => {
|
||||
if (editorRef && editor && editor.selection) {
|
||||
Transforms.select(editorRef as BaseEditor, editor.selection);
|
||||
ReactEditor.focus(editorRef as ReactEditor);
|
||||
ReactEditor.focus(editorRef as unknown as ReactEditor);
|
||||
|
||||
if (selectedColor) {
|
||||
removeMark(editor, { key: type });
|
||||
|
@ -10699,10 +10699,10 @@ slate-hyperscript@0.77.0:
|
||||
dependencies:
|
||||
is-plain-object "^5.0.0"
|
||||
|
||||
slate-react@0.83.2:
|
||||
version "0.83.2"
|
||||
resolved "https://registry.yarnpkg.com/slate-react/-/slate-react-0.83.2.tgz#7099db1607b79c95cc2a41e2df1e04982b7e26a5"
|
||||
integrity sha512-V5qtPsCOiDVCMU3ovj/CWndxx9/as5/wGJxnbJDRVzuazSh+NVw/YuGTlus1fCt+Nlt6UHOhFvM7C9pXYaftPA==
|
||||
slate-react@0.86.0:
|
||||
version "0.86.0"
|
||||
resolved "https://registry.yarnpkg.com/slate-react/-/slate-react-0.86.0.tgz#e1e0bfaf9a21f8e18d86b616538d11e81c0f8920"
|
||||
integrity sha512-FlzG0CL1MtpZk7DRH6a101FdqdhTi+vZ23SbY5hQudIdgLo7QnUBv97BRe30VctqsL9L+Z2OsFHSCmWpIIxJAw==
|
||||
dependencies:
|
||||
"@types/is-hotkey" "^0.1.1"
|
||||
"@types/lodash" "^4.14.149"
|
||||
|
Loading…
x
Reference in New Issue
Block a user