Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The checkbox type of Trigger is not working #1829

Open
HuangKaibo2017 opened this issue Sep 30, 2024 · 0 comments
Open

The checkbox type of Trigger is not working #1829

HuangKaibo2017 opened this issue Sep 30, 2024 · 0 comments

Comments

@HuangKaibo2017
Copy link

Describe the bug
No matter mark the checkbox or not, value is not changed.

To Reproduce
Steps to reproduce the behavior:
run the following workflow on Version: 1.28.27, the output of val_2 parameter is the same.
image

the following is the test follow:
'''
{"name":"automa-blocks","data":{"nodes":[{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"zqg8feiZBKYx-thGhfCZ7-output-1","position":"right","x":196.00006103515625,"y":27.9996337890625,"width":16,"height":16}]},"computedPosition":{"x":358,"y":547,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","type":"manual","interval":60,"delay":5,"date":"","time":"00:00","url":"","shortcut":"","activeInInput":false,"isUrlRegex":false,"days":[],"contextMenuName":"","contextTypes":[],"parameters":[{"name":"val_1","type":"string","description":"","defaultValue":"def_1","placeholder":"Text","data":{"masks":[{"isRegex":false,"mask":"","lazy":false}],"required":false,"useMask":false,"unmaskValue":false}},{"name":"val_2","type":"checkbox","description":"","defaultValue":"","placeholder":"def_2","data":{"required":false}}],"preferParamsInTab":false,"observeElement":{"selector":"","baseSelector":"","matchPattern":"","targetOptions":{"subtree":false,"childList":true,"attributes":false,"attributeFilter":[],"characterData":false},"baseElOptions":{"subtree":false,"childList":true,"attributes":false,"attributeFilter":[],"characterData":false}}},"events":{},"position":{"x":358,"y":547},"id":"zqg8feiZBKYx-thGhfCZ7","label":"trigger"},{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"f9xydkn-output-1","position":"right","x":196.0006103515625,"y":27.9996337890625,"width":16,"height":16}],"target":[{"id":"f9xydkn-input-1","position":"left","x":-19.9993896484375,"y":27.9996337890625,"width":16,"height":16}]},"computedPosition":{"x":667,"y":547,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","message":"val_1: {{variables.val_1}}","iconUrl":"","imageUrl":"","title":"info"},"events":{},"position":{"x":667,"y":547},"label":"notification","id":"f9xydkn"},{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"ghyz5r5-output-1","position":"right","x":196,"y":28,"width":16,"height":16}],"target":[{"id":"ghyz5r5-input-1","position":"left","x":-20,"y":28,"width":16,"height":16}]},"computedPosition":{"x":1004,"y":546,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","message":"!!val_2: {{variables.val_2===null}}","iconUrl":"","imageUrl":"","title":"info"},"events":{},"label":"notification","id":"ghyz5r5","position":{"x":1004,"y":546}},{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"7x4m7qq-output-1","position":"right","x":196,"y":28,"width":16,"height":16}],"target":[{"id":"7x4m7qq-input-1","position":"left","x":-20,"y":28,"width":16,"height":16}]},"computedPosition":{"x":846,"y":728,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","timeout":20000,"context":"website","code":"const val_2 = automaRefData('variables', 'val_2');\nconsole.log(val_2:${val_2===null}:${val_2}:${val_2===undefined}:${val_2===true}:${val_2===false});\n\nautomaNextBlock();","preloadScripts":[],"everyNewTab":false,"runBeforeLoad":false},"events":{},"position":{"x":846,"y":728},"label":"javascript-code","id":"7x4m7qq"},{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"lqm8oqe-output-1","position":"right","x":196.000732421875,"y":28.000732421875,"width":16,"height":16}],"target":[{"id":"lqm8oqe-input-1","position":"left","x":-19.999267578125,"y":28.000732421875,"width":16,"height":16}]},"computedPosition":{"x":431,"y":738,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false},"events":{},"position":{"x":431,"y":738},"label":"active-tab","id":"lqm8oqe"}],"edges":[{"sourceHandle":"zqg8feiZBKYx-thGhfCZ7-output-1","targetHandle":"f9xydkn-input-1","type":"custom","source":"zqg8feiZBKYx-thGhfCZ7","target":"f9xydkn","updatable":true,"selectable":true,"data":{},"events":{},"class":"connected-edges","markerEnd":"arrowclosed","id":"vueflow__edge-zqg8feiZBKYx-thGhfCZ7zqg8feiZBKYx-thGhfCZ7-output-1-f9xydknf9xydkn-input-1","sourceNode":{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"zqg8feiZBKYx-thGhfCZ7-output-1","position":"right","x":196.00006103515625,"y":27.9996337890625,"width":16,"height":16}]},"computedPosition":{"x":358,"y":547,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","type":"manual","interval":60,"delay":5,"date":"","time":"00:00","url":"","shortcut":"","activeInInput":false,"isUrlRegex":false,"days":[],"contextMenuName":"","contextTypes":[],"parameters":[{"name":"val_1","type":"string","description":"","defaultValue":"def_1","placeholder":"Text","data":{"masks":[{"isRegex":false,"mask":"","lazy":false}],"required":false,"useMask":false,"unmaskValue":false}},{"name":"val_2","type":"checkbox","description":"","defaultValue":"","placeholder":"def_2","data":{"required":false}}],"preferParamsInTab":false,"observeElement":{"selector":"","baseSelector":"","matchPattern":"","targetOptions":{"subtree":false,"childList":true,"attributes":false,"attributeFilter":[],"characterData":false},"baseElOptions":{"subtree":false,"childList":true,"attributes":false,"attributeFilter":[],"characterData":false}}},"events":{},"position":{"x":358,"y":547},"id":"zqg8feiZBKYx-thGhfCZ7","label":"trigger"},"targetNode":{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"f9xydkn-output-1","position":"right","x":196.0006103515625,"y":27.9996337890625,"width":16,"height":16}],"target":[{"id":"f9xydkn-input-1","position":"left","x":-19.9993896484375,"y":27.9996337890625,"width":16,"height":16}]},"computedPosition":{"x":667,"y":547,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","message":"val_1: {{variables.val_1}}","iconUrl":"","imageUrl":"","title":"info"},"events":{},"position":{"x":667,"y":547},"label":"notification","id":"f9xydkn"},"sourceX":570.0000610351562,"sourceY":582.9996337890625,"targetX":647.0006103515625,"targetY":582.9996337890625,"selected":true},{"sourceHandle":"f9xydkn-output-1","targetHandle":"ghyz5r5-input-1","type":"custom","source":"f9xydkn","target":"ghyz5r5","updatable":true,"selectable":true,"data":{},"events":{},"class":"connected-edges","markerEnd":"arrowclosed","id":"vueflow__edge-f9xydknf9xydkn-output-1-ghyz5r5ghyz5r5-input-1","sourceNode":{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"f9xydkn-output-1","position":"right","x":196.0006103515625,"y":27.9996337890625,"width":16,"height":16}],"target":[{"id":"f9xydkn-input-1","position":"left","x":-19.9993896484375,"y":27.9996337890625,"width":16,"height":16}]},"computedPosition":{"x":667,"y":547,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","message":"val_1: {{variables.val_1}}","iconUrl":"","imageUrl":"","title":"info"},"events":{},"position":{"x":667,"y":547},"label":"notification","id":"f9xydkn"},"targetNode":{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"ghyz5r5-output-1","position":"right","x":196,"y":28,"width":16,"height":16}],"target":[{"id":"ghyz5r5-input-1","position":"left","x":-20,"y":28,"width":16,"height":16}]},"computedPosition":{"x":1004,"y":546,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","message":"!!val_2: {{variables.val_2===null}}","iconUrl":"","imageUrl":"","title":"info"},"events":{},"label":"notification","id":"ghyz5r5","position":{"x":1004,"y":546}},"sourceX":879.0006103515625,"sourceY":582.9996337890625,"targetX":984,"targetY":582,"selected":true},{"sourceHandle":"zqg8feiZBKYx-thGhfCZ7-output-1","targetHandle":"lqm8oqe-input-1","type":"custom","source":"zqg8feiZBKYx-thGhfCZ7","target":"lqm8oqe","updatable":true,"selectable":true,"data":{},"events":{},"class":"connected-edges","markerEnd":"arrowclosed","id":"vueflow__edge-zqg8feiZBKYx-thGhfCZ7zqg8feiZBKYx-thGhfCZ7-output-1-lqm8oqelqm8oqe-input-1","sourceNode":{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"zqg8feiZBKYx-thGhfCZ7-output-1","position":"right","x":196.00006103515625,"y":27.9996337890625,"width":16,"height":16}]},"computedPosition":{"x":358,"y":547,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","type":"manual","interval":60,"delay":5,"date":"","time":"00:00","url":"","shortcut":"","activeInInput":false,"isUrlRegex":false,"days":[],"contextMenuName":"","contextTypes":[],"parameters":[{"name":"val_1","type":"string","description":"","defaultValue":"def_1","placeholder":"Text","data":{"masks":[{"isRegex":false,"mask":"","lazy":false}],"required":false,"useMask":false,"unmaskValue":false}},{"name":"val_2","type":"checkbox","description":"","defaultValue":"","placeholder":"def_2","data":{"required":false}}],"preferParamsInTab":false,"observeElement":{"selector":"","baseSelector":"","matchPattern":"","targetOptions":{"subtree":false,"childList":true,"attributes":false,"attributeFilter":[],"characterData":false},"baseElOptions":{"subtree":false,"childList":true,"attributes":false,"attributeFilter":[],"characterData":false}}},"events":{},"position":{"x":358,"y":547},"id":"zqg8feiZBKYx-thGhfCZ7","label":"trigger"},"targetNode":{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"lqm8oqe-output-1","position":"right","x":196.000732421875,"y":28.000732421875,"width":16,"height":16}],"target":[{"id":"lqm8oqe-input-1","position":"left","x":-19.999267578125,"y":28.000732421875,"width":16,"height":16}]},"computedPosition":{"x":431,"y":738,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false},"events":{},"position":{"x":431,"y":738},"label":"active-tab","id":"lqm8oqe"},"sourceX":570.0000610351562,"sourceY":582.9996337890625,"targetX":411.000732421875,"targetY":774.000732421875,"selected":true},{"sourceHandle":"lqm8oqe-output-1","targetHandle":"7x4m7qq-input-1","type":"custom","source":"lqm8oqe","target":"7x4m7qq","updatable":true,"selectable":true,"data":{},"events":{},"class":"connected-edges","markerEnd":"arrowclosed","id":"vueflow__edge-lqm8oqelqm8oqe-output-1-7x4m7qq7x4m7qq-input-1","sourceNode":{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"lqm8oqe-output-1","position":"right","x":196.000732421875,"y":28.000732421875,"width":16,"height":16}],"target":[{"id":"lqm8oqe-input-1","position":"left","x":-19.999267578125,"y":28.000732421875,"width":16,"height":16}]},"computedPosition":{"x":431,"y":738,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false},"events":{},"position":{"x":431,"y":738},"label":"active-tab","id":"lqm8oqe"},"targetNode":{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"7x4m7qq-output-1","position":"right","x":196,"y":28,"width":16,"height":16}],"target":[{"id":"7x4m7qq-input-1","position":"left","x":-20,"y":28,"width":16,"height":16}]},"computedPosition":{"x":846,"y":728,"z":1000},"selected":true,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","timeout":20000,"context":"website","code":"const val_2 = automaRefData('variables', 'val_2');\nconsole.log(val_2:${val_2===null}:${val_2}:${val_2===undefined}:${val_2===true}:${val_2===false});\n\nautomaNextBlock();","preloadScripts":[],"everyNewTab":false,"runBeforeLoad":false},"events":{},"position":{"x":846,"y":728},"label":"javascript-code","id":"7x4m7qq"},"sourceX":643.000732421875,"sourceY":774.000732421875,"targetX":826,"targetY":764,"selected":true}]}}
'''

Expected behavior
guide me use it correctly or fix this bug.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: wnd 11
  • Browser: Chrome Version 129.0.6668.70 (Official Build) (64-bit)
  • Extension Version: 1.28.27

Additional context
[n/a]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant