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

PaperSelect with selected=0 #1168

Open
beastmst opened this issue Oct 14, 2020 · 1 comment
Open

PaperSelect with selected=0 #1168

beastmst opened this issue Oct 14, 2020 · 1 comment

Comments

@beastmst
Copy link

I have an array as selectOption=[0,1,2,3]

when the selected value is 0, it is not selected...

any idea why?
where

pageArray = [0,1,2,3]
page = 0,

      <PaperSelect 
           @options={{pageArray}} 
           @label="Page" 
           @selected={{page}} 
           @onChange={{action (mut page)}} 
        as |pageNo|>     
          {{pageNo}}
      </PaperSelect>
@joukevandermaas
Copy link
Contributor

Seems that this is the case for any "falsy" value, e.g. the boolean value false also has this effect.

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

No branches or pull requests

2 participants