Skip to content

How to add an attribute to the input element of Select #153

Answered by rtivital
chilltemp asked this question in Q&A
Discussion options

You must be logged in to vote

I guess this is missing from documentation, but you can just set these props on component and it should pass it to input – https://github.com/mantinedev/mantine/blob/master/src/mantine-core/src/components/Select/Select.tsx#L319

So it should be <Select data-lpignore="true" />

wrapperProps adds props to root element (InputWrapper component)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@chilltemp
Comment options

@chilltemp
Comment options

Comment options

You must be logged in to vote
1 reply
@chilltemp
Comment options

Answer selected by rtivital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants