Closed igarren closed 2 months ago
@igarren is attempting to deploy a commit to the Themesberg Team on Vercel.
A member of the Team first needs to authorize it.
The changes introduced in this pull request enhance the <select>
component in Select.svelte
by adding a disabled
property to the SelectOptionType
. This allows specific <option>
elements to be conditionally rendered as disabled based on the provided data, improving the control over the dropdown options.
File | Change Summary |
---|---|
src/lib/forms/Select.svelte | Modified rendering logic to include a disabled attribute for <option> elements based on the disabled property of each item. |
src/lib/types.ts | Added an optional disabled property of type boolean to the SelectOptionType definition. |
disabled
property for <option>
elements in the Select.svelte
component.In a meadow where options play,
A rabbit hops in bright array.
With a wink and a twitch,
Some choices now switch,
Disabled, they rest, come what may! πβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
flowbite-svelte | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Sep 26, 2024 4:23am |
Closes #
π Description
Status
β Checks
βΉ Additional Information
Summary by CodeRabbit
New Features
disabled
property for options in the dropdown, allowing for more control over which options can be selected.Bug Fixes
<select>
component to conditionally disable options based on the new property.