Skip to content

Commit

Permalink
fix: connection status of Click Button was ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecat committed Nov 13, 2023
1 parent 5c7779c commit eac12e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/VirtualIODevices.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ const clickButton = (function() {
setSelectByValue(signalPressedSelect, "signalPressed" in configData ? configData.signalPressed : 0);
const setOutputPortList = ioManager.registerDevice("クリックボタン", {"en": "Click Button"}, function(){}, queryIn);
const updateOutputPortList = function() {
setOutputPortList(portToConnectSelect.value === "" ? [] : [portToConnectSelect.value]);
setOutputPortList(!connectedCheck.checked || portToConnectSelect.value === "" ? [] : [portToConnectSelect.value]);
};
connectedCheck.addEventListener("change", updateOutputPortList);
portToConnectSelect.addEventListener("change", updateOutputPortList);
updateOutputPortList();

Expand Down

0 comments on commit eac12e0

Please sign in to comment.