Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to select "none" as the Button component's type #37

Closed
jvanja opened this issue Nov 10, 2022 · 0 comments · Fixed by #38
Closed

Unable to select "none" as the Button component's type #37

jvanja opened this issue Nov 10, 2022 · 0 comments · Fixed by #38

Comments

@jvanja
Copy link

jvanja commented Nov 10, 2022

If I select "none" for the Button's type prop, the selectedStyles defaults to "primary" classes as:
const selectedStyle = computed(() => styles[props.type] || styles.primary)
evaluates styles['none'] as false as it's an empty string.

Instead, it should return an empty string.

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 a pull request may close this issue.

1 participant