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

SelectValidator causing page scroll to vanish - unable to override #173

Open
Luke-S1 opened this issue Jun 16, 2022 · 4 comments
Open

SelectValidator causing page scroll to vanish - unable to override #173

Luke-S1 opened this issue Jun 16, 2022 · 4 comments

Comments

@Luke-S1
Copy link

Luke-S1 commented Jun 16, 2022

Hello there,

The issue we are encountering is that the component will not accept MenuProps={{disableScrollLock: true}} attribute.

This means that when the select is opened, the page shifts to the right as the portal that holds the select elements does not exceed the page height.

@NewOldMax
Copy link
Owner

@Luke-S1 Hi, try to use it as

SelectProps={{
    MenuProps: { disableScrollLock: true },
}}

SelectValidator uses TextField component so all Select related props must be passed via SelectProps

@AkshatK805
Copy link

Hi, I'm new to react-material-ui-form-validator. Can someone help me understand how to use radio buttons with react-material-ui-form-validator with an example code?

@NewOldMax
Copy link
Owner

NewOldMax commented Aug 23, 2022

@AkshatK805 you can check this one #65
It's a bit old answer and render must be changed to renderValidatorComponent, but you can get the main idea from there

@AkshatK805
Copy link

@NewOldMax thank you so much, it worked.

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

No branches or pull requests

3 participants