Skip to content

Commit

Permalink
fix(react-tinacms-inline): some fields were mis-handling focus
Browse files Browse the repository at this point in the history
  • Loading branch information
ncphillips committed Oct 8, 2020
1 parent a37c091 commit 5d7318c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Expand Up @@ -77,7 +77,12 @@ export function InlineWysiwyg({
<InlineField name={name}>
{({ input }: any) => {
return (
<FocusRing name={name} options={focusRing}>
/**
* Note: We use `input.name` not `name` here because
* the given name is only relative to the block, not
* the absolute path in the form.
*/
<FocusRing name={input.name} options={focusRing}>
<Wysiwyg input={input} {...wysiwygProps} imageProps={imageProps} />
</FocusRing>
)
Expand Down
Expand Up @@ -61,7 +61,12 @@ export function InlineText({
}

return (
<FocusRing name={name} options={focusRing}>
/**
* Note: We use `input.name` not `name` here because
* the given name is only relative to the block, not
* the absolute path in the form.
*/
<FocusRing name={input.name} options={focusRing}>
<Input
type="text"
{...input}
Expand Down
Expand Up @@ -55,7 +55,12 @@ export function InlineTextarea({
}

return (
<FocusRing name={name} options={focusRing}>
/**
* Note: We use `input.name` not `name` here because
* the given name is only relative to the block, not
* the absolute path in the form.
*/
<FocusRing name={input.name} options={focusRing}>
<Textarea
className={className}
{...input}
Expand Down

0 comments on commit 5d7318c

Please sign in to comment.