Skip to content

Add a custom attribute to specific Slot #3592

Closed Answered by luiskabes-arch
luiskabes-arch asked this question in Help
Discussion options

You must be logged in to vote

I think i've fixed the issue, instead adding the attribute into specific slot, we can add the attributes into Popover component via popoverProps

const customPopoverProps = {
	'data-lenis-prevent': '',
	'data-lenis-prevent-wheel': '',
	'data-lenis-prevent-touch': '',
};
<Select
	label='Tanggal'
	isRequired
	className='w-full'
	popoverProps={customPopoverProps}>
	{days.map((day) => (
		<SelectItem key={day} textValue={day}>
			{day}
		</SelectItem>
	))}
</Select>

the popover is scrollable now

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by luiskabes-arch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant