Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

renderSelection breaks when data is empty array with options #129

Open
PawelGlow opened this issue Aug 6, 2019 · 0 comments
Open

renderSelection breaks when data is empty array with options #129

PawelGlow opened this issue Aug 6, 2019 · 0 comments

Comments

@PawelGlow
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant