Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows for the selectbox to display selected values with index '0' #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TyPleks
Copy link

@TyPleks TyPleks commented Apr 3, 2018

Prior to this change the selectbox wasn't able to display selected values (reference-mode:id) with index '0' (as number, not string). An example would be enum properties which are bound to the selectbox by id. Although it's possible to select an enum value with id '0' and save it (assuming we can save the selected value to a database), reloading it from aforementioned database prevents it from beeing displayed in the selectbox, 'undefined' (or nothing) is displayed instead. This change allows for the selectbox to display enum values with index '0' (or values with index '0' in general).

Prior to this change the selectbox wasn't able to display selected values (reference-mode:id) with index '0' (as number, not string). An example would be enum properties which are bound to the selectbox by id. Although it's possible to select an enum value with id '0' and save it (assuming we can save the selected value to a database), reloading it from aforementioned database prevents it from beeing displayed in the selectbox, 'undefined' (or nothing) is displayed instead. This change allows for the selectbox to display enum values with index '0' (or values with index '0' in general).
@codecov
Copy link

codecov bot commented Apr 3, 2018

Codecov Report

Merging #54 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #54   +/-   ##
=======================================
  Coverage   90.87%   90.87%           
=======================================
  Files           6        6           
  Lines         241      241           
  Branches       46       46           
=======================================
  Hits          219      219           
  Misses          7        7           
  Partials       15       15
Impacted Files Coverage Δ
...wrapper/src/app/iq-select2/iq-select2.component.ts 92.26% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c40aa3...5070b47. Read the comment docs.

@TyPleks TyPleks changed the title Allows the selectbox to display selected values with index '0' Allows for the selectbox to display selected values with index '0' Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant