mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-12 23:27:48 +00:00
Automatically bind toggleAll action
We are already specifying the element's role ('all') in the HTML. Its behaviour should be predefined; there's no need to also specify in the HTML.
The eventhandler doesn't need to be cleand up on disconnect, because they are removed along with the DOM object.
This commit is contained in:
@@ -17,7 +17,6 @@ describe("CheckedController", () => {
|
||||
<input
|
||||
id="selectAllCheckbox"
|
||||
type="checkbox"
|
||||
data-action="change->checked#toggleAll"
|
||||
data-checked-target="all">
|
||||
<input
|
||||
id="checkboxA"
|
||||
@@ -87,7 +86,6 @@ describe("CheckedController", () => {
|
||||
<input
|
||||
id="selectAllCheckbox"
|
||||
type="checkbox"
|
||||
data-action="change->checked#toggleAll"
|
||||
data-checked-target="all">
|
||||
<input
|
||||
id="checkboxA"
|
||||
|
||||
Reference in New Issue
Block a user