Mobius1/Selectr

renderSelection breaks when data is empty array with options

PawelGlow opened this issue · 0 comments

https://github.com/Mobius1/Selectr/blob/master/src/selectr.js#L1641

  • data is a empty array
  • some options are predefined in the select during init
  • renderSelection function defined

When selecting an option the data passed to the renderSelection function is undefined because the data array is empty.