Skip to content
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

File 'accept' Attribute Not Functioning #4404

Open
3 of 4 tasks
aress31 opened this issue Dec 1, 2024 · 3 comments
Open
3 of 4 tasks

File 'accept' Attribute Not Functioning #4404

aress31 opened this issue Dec 1, 2024 · 3 comments

Comments

@aress31
Copy link

aress31 commented Dec 1, 2024

Prerequisites

What theme are you using?

mui

Version

5.23.1

Current Behavior

The file accept property for uiSchema is not working. It is setting the property on the wrapping parent rather than on the input field, see:

image

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- Node:
- npm:

Anything else?

No response

@aress31 aress31 added bug needs triage Initial label given, to be assigned correct labels and assigned labels Dec 1, 2024
@aress31 aress31 changed the title Fille "accept" Not Working File "accept" Not Working Dec 1, 2024
@vanch3d
Copy link

vanch3d commented Dec 1, 2024

Similar problem with chakra-ui
The problem seems to be with getInputProps, not retaining accept from the props to be inserted in the input

  • in mui, it's inserted in the parent (...rest)
  • in chakra-ui, it's simply ignored

@aress31 aress31 changed the title File "accept" Not Working File 'accept' Attribute Not Functioning Dec 4, 2024
@heath-freenome
Copy link
Member

@vanch3d Thank you for identifying the source of the problem. Would either you or @aress31 be willing to update this function in @rjsf/utils so that the bug is fixed?

@heath-freenome heath-freenome added help wanted and removed needs triage Initial label given, to be assigned correct labels and assigned labels Dec 6, 2024
@aress31
Copy link
Author

aress31 commented Dec 6, 2024

I am not available to work on the PR.

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

No branches or pull requests

3 participants