You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selecting a checkbox for a record on an index page with an Action throws a JS error for a resource that has no search query defined.
Steps to Reproduce
Create a resource that has no search query defined (default).
Create an action for that resource.
Click on that resource in sidebar.
Click on a checkbox to select a record.
See error in JS console.
Expected behavior
No JS error should be thrown.
Actual behavior
Throws following console error:
stimulus.js:1658 Error invoking action "input->item-selector#toggle"
TypeError: Cannot read properties of null (reading 'dataset')
at n.set currentIds [as currentIds] (item_selector_controller.js:31:29)
at n.addToSelected (item_selector_controller.js:58:10)
at n.toggle (item_selector_controller.js:71:12)
at JQ.invokeWithEvent (stimulus.js:278:25)
at JQ.handleEvent (stimulus.js:260:18)
at KQ.handleEvent (stimulus.js:31:25)
System configuration
Avo version: 2.3.0
Rails version: 7.0.2.3
Ruby version: 2.7.2p137
Screenshots
Additional context
I was relying on performing an action on multiple resources and realized the IDs weren't being submitted. The immediate JS error was the toggle. And the secondary issue were the IDs not being submitted in a form for use in an action.
Impact
Low impact
Urgency
low urgency
The text was updated successfully, but these errors were encountered:
schmidtg
changed the title
Selecting checkbox on index page with no search throws JS error
Selecting checkbox on index page with Action and no search query throws JS error
Apr 24, 2022
Describe the bug
Selecting a checkbox for a record on an index page with an Action throws a JS error for a resource that has no search query defined.
Steps to Reproduce
Expected behavior
No JS error should be thrown.
Actual behavior
Throws following console error:
System configuration
Avo version: 2.3.0
Rails version: 7.0.2.3
Ruby version: 2.7.2p137
Screenshots
Additional context
I was relying on performing an action on multiple resources and realized the IDs weren't being submitted. The immediate JS error was the toggle. And the secondary issue were the IDs not being submitted in a form for use in an action.
Impact
Urgency
The text was updated successfully, but these errors were encountered: