miguelcobain / ember-paper

The Ember approach to Material Design.
http://miguelcobain.github.io/ember-paper
MIT License
889 stars 331 forks source link

PaperSelect with selected=0 #1168

Open beastmst opened 3 years ago

beastmst commented 3 years ago

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 commented 3 years ago

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