Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

fix: downgrading datetime inputs to simple text inputs #493

Merged
merged 1 commit into from
Feb 25, 2020

Conversation

erunion
Copy link
Member

@erunion erunion commented Feb 25, 2020

There appears to be a bug in RJSF right now where it's disabling input into <input type="datetime-local"> inputs in Firefox. As a quick hotfix, we're downgrading our format support of datetime and date-time to simple text inputs.

@erunion erunion added the type:bug Something isn't working label Feb 25, 2020
@@ -249,7 +249,9 @@ class ResponseExample extends React.Component {
<div className="example example_json">{transformExampleIntoReactJson(example)}</div>
) : (
// json + multiple examples is already handled in `showExamples`.
<>{isJson && example.multipleExamples ? null : getHighlightedExample(example)}</>
<React.Fragment>
Copy link
Member Author

Choose a reason for hiding this comment

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

Made this change because jsinspect couldn't handle parsing <> fragments.

@erunion erunion merged commit b802969 into master Feb 25, 2020
@erunion erunion deleted the fix/datetime-inputs branch February 25, 2020 00:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant