Selectr icon indicating copy to clipboard operation
Selectr copied to clipboard

renderSelection breaks when data is empty array with options

Open PawelGlow opened this issue 5 years ago • 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.

PawelGlow avatar Aug 06 '19 15:08 PawelGlow