Fix bugs with toggle and drop down

This commit is contained in:
uwap 2018-11-11 16:08:38 +01:00
parent ee2dbe0f7b
commit 0a2c46c37b
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ const isToggled = (item: UIToggle, state: State) => {
return checked;
};
const doToggle = (item: UIToggle, state: State, changeState) => {
const doToggle = (item: UIToggle, state: State, changeState) => () => {
if (isEnabled(item, state)) {
const toggled = isToggled(item, state);
const on = item.on == null ? "on" : item.on;