Skip to content

Feat (select): Allow default config in Select prompt#1329

Merged
SBoudrias merged 3 commits intomasterfrom
feat/allow-defaults
Nov 5, 2023
Merged

Feat (select): Allow default config in Select prompt#1329
SBoudrias merged 3 commits intomasterfrom
feat/allow-defaults

Conversation

@SBoudrias
Copy link
Copy Markdown
Owner

#1327 with my edition to merge it now 😄

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
packages/select/src/index.mts 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@SBoudrias SBoudrias changed the title Allow default config in Select prompt (prev #1327) Feat (select): Allow default config in Select prompt Nov 5, 2023
@SBoudrias SBoudrias merged commit 1b3df3a into master Nov 5, 2023
@SBoudrias SBoudrias deleted the feat/allow-defaults branch November 5, 2023 23:18

const defaultItemIndex = useMemo(() => {
if (!_default) return -1;
if (!('default' in config)) return -1;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree that it's nicer, but perhaps we should just rename all default to defaultValue as it's a bit annoying to work with the reserved word imo.

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

Successfully merging this pull request may close these issues.

2 participants