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

fix: use Form.Control to stop "Input" not defined error #78

Merged

Conversation

brian-smith-tcril
Copy link
Contributor

When rebasing #74, I ran into an issue with the library title edit functionality (I was getting an "Input" not defined error)

I decided to test on latest without my changes, and found the issue exists there too. I'm assuming this happened because #61 had not been tested again since #53 was merged

I've tested this replacement and all seems to work as expected.

@@ -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); }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added this to get past a linter error

@arbrandes
Copy link
Contributor

+1! Thanks for this, @brian-smith-tcril!

@arbrandes arbrandes merged commit c47c652 into openedx-unsupported:master Oct 18, 2022
@brian-smith-tcril brian-smith-tcril deleted the fix-input-not-defined branch October 18, 2022 15:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants