Today I spent many hours trying to figure out what happened. I am trying to set the initial value as soon as some data is loaded via content.isLoaded . This is done after the contents of CreditCards and CardProviders uploaded, as you can see in the attached photo:
. But somehow he cannot set this value:
selectDefaultValue: (-> if !@get 'multiple' console.log 'content loaded' window.$select = @$('.filter-select').first()
But when I try window.$select from the console, it works!
canSetDefaultProvider set to true when loading the contents of CreditCards and CardProviders .
source share