Open Mist3rBru opened 10 months ago
Latest commit: 2740d3f8930bff02b8361f70ef039431e2c7bbeb
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This PR introduces a new
disabled
option for both theselect
andmultiselect
prompts. When this option is enabled, it prevents users from selecting the specified prompt's option. It's worth noting that while themultiselect
prompt doesn't allow blocking themark
action, thedisabled
option will effectively block it upon submission.Changes Made:
disabled
option to theselect
andmultiselect
prompts to allow blocking user selection.disabled
option is enabled.mark
action is blocked in themultiselect
prompt when it is disabled upon submission.Demo:
https://github.com/natemoo-re/clack/assets/100330057/1293df96-6700-4e80-bb2b-5f7272b37f66
Closes #122