Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fix: use Form.Control to stop "Input" not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Smith authored and arbrandes committed Oct 18, 2022
1 parent e668986 commit c47c652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library-authoring/author-library/LibraryAuthoringPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ const LibraryAuthoringPageHeaderBase = ({ intl, library, ...props }) => {
<h1 className="page-header-title">
{ inputIsActive
? (
<Input
<Form.Control
autoFocus
name="title"
id="title"
Expand All @@ -362,7 +362,7 @@ const LibraryAuthoringPageHeaderBase = ({ intl, library, ...props }) => {
defaultValue={library.title}
onBlur={handleSaveTitle}
onKeyDown={event => {
if (event.key === 'Enter') { handleSaveTitle(event) }
if (event.key === 'Enter') { handleSaveTitle(event); }
}}
/>
)
Expand Down

0 comments on commit c47c652

Please sign in to comment.