-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add NumberControl
#16
Conversation
uischema, | ||
}: ControlProps & RendererProps) { | ||
const arialLabelWithFallback = label || schema.description || "Value" | ||
const isRequired = required || uischema.options?.required as boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this reads better if you type the options object separately, e.g.
const options: NumberControlOptions = uischema.options as NumberControlOptions
and then casts like
const addonAfter = uischema.options?.addonAfter as string | undefined
are not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to add NumberControlOptions
on that line twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yeah we don't!
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Add
NumberControl
Corresponding tests