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

Dropdown ignores false or 0 values #11

Closed
jonasraoni opened this issue Jul 1, 2019 · 1 comment
Closed

Dropdown ignores false or 0 values #11

jonasraoni opened this issue Jul 1, 2019 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@jonasraoni
Copy link

The methods getSelectedOption and getSelectedOptionIndex ignore the value 0.

jonasraoni pushed a commit to jonasraoni/primevue that referenced this issue Jul 1, 2019
@cagataycivici cagataycivici changed the title Dropdown.vue Dropdown ignores false or 0 values Jul 11, 2019
@cagataycivici cagataycivici self-assigned this Jul 11, 2019
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 11, 2019
@cagataycivici cagataycivici added this to the 1.0.0-beta.4 milestone Jul 11, 2019
cagataycivici added a commit that referenced this issue Jul 11, 2019
#11 Modified the Dropdown to not ignore a falsy value
@cagataycivici
Copy link
Member

Also added undefined check, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants