Skip to content

Commit

Permalink
Minor fixes for behavior binding selection funkiness (#62)
Browse files Browse the repository at this point in the history
* fix: Fix clearing HID usage value on binding change

* Use null instead of undefined for fallback value on binding change

* fix: Proper equality check on parameter value.
  • Loading branch information
petejohanson authored Oct 14, 2024
1 parent 096bbf0 commit 17208f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/behaviors/BehaviorBindingPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const BehaviorBindingPicker = ({
if (
binding.behaviorId === behaviorId &&
binding.param1 === param1 &&
binding.param2 == param2
binding.param2 === param2
) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/behaviors/HidUsagePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const HidUsagePicker = ({
<div className="flex gap-2 relative">
{label && <Label id="hid-usage-picker">{label}:</Label>}
<ComboBox
selectedKey={value ? mask_mods(value) : undefined}
selectedKey={value ? mask_mods(value) : null}
onSelectionChange={selectionChanged}
aria-labelledby="hid-usage-picker"
>
Expand Down

0 comments on commit 17208f5

Please sign in to comment.