Make sure it is initialized properly. It appears that the proper list will only be displayed properly once the user clicks the button to change the winetype.
Maybe we should have the teint api accept a parameter to filter the options.
Since the wineType no longer has a default option set, how do we decide which teint to show?
When there is nothing clicked display both colors,
If the user later click the wineType, check if the type he selected is part of the list.
2a. If yes, leave is choice as is, and clean the teint that are for the other wineTypes.
2b. else, put a blank choice and clean the teint that are for the other wineTypes, so the form wont validate unless he sets it himself. Also notify him by highlighting the form input with a warning class, that he needs to set this correctly.
Maybe we should have the teint api accept a parameter to filter the options.
Since the wineType no longer has a default option set, how do we decide which teint to show?
If the user later click the wineType, check if the type he selected is part of the list.
2a. If yes, leave is choice as is, and clean the teint that are for the other wineTypes. 2b. else, put a blank choice and clean the teint that are for the other wineTypes, so the form wont validate unless he sets it himself. Also notify him by highlighting the form input with a warning class, that he needs to set this correctly.