Fix bugs with toggle and drop down
This commit is contained in:
parent
ee2dbe0f7b
commit
0a2c46c37b
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue