Skip to content

Conversation

@mehdibha
Copy link

Closes

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

dotUI

Copy link
Member

@snowystinger snowystinger left a comment

Choose a reason for hiding this comment

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

Thanks for starting this PR

data-disabled={props.isDisabled || undefined}
data-invalid={validation.isInvalid || undefined} />
data-invalid={validation.isInvalid || undefined}
data-readonly={props.isReadOnly || undefined}
Copy link
Member

Choose a reason for hiding this comment

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

thanks, these should be added to the useRenderProps above as well, see an example here

isReadOnly: props.isReadOnly || false,

we'll also want to have tests for this which can be modelled after

it('should support read-only state', async () => {

@snowystinger
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants