Skip to content

Commit

Permalink
Merge pull request #2 from jpaddeo/fix/disabled-attrs
Browse files Browse the repository at this point in the history
Fixing hx-disabled-elt attribute.
  • Loading branch information
CRBroughton authored Feb 7, 2024
2 parents b12d66c + d6d0a41 commit 828d269
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions snippets/htmx-add-html.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"https://htmx.org/attributes/hx-disable/"
]
},
"hx-disable-elt": {
"prefix": "hx-disable-elt",
"hx-disabled-elt": {
"prefix": "hx-disabled-elt",
"body": [
"hx-disable-elt=\"${1:this}\""
"hx-disabled-elt=\"${1:this}\""
],
"description": [
"adds the disabled attribute to the specified elements while a request is in flight\n",
Expand Down
6 changes: 3 additions & 3 deletions snippets/htmx-add-jsx.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"https://htmx.org/attributes/hx-disable/"
]
},
"hx-disable-elt": {
"prefix": "hx-disable-elt",
"hx-disabled-elt": {
"prefix": "hx-disabled-elt",
"body": [
"hx-disable-elt=\"${1:this}\""
"hx-disabled-elt=\"${1:this}\""
],
"description": [
"adds the disabled attribute to the specified elements while a request is in flight\n",
Expand Down
6 changes: 3 additions & 3 deletions snippets/htmx-add-templ.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"https://htmx.org/attributes/hx-disable/"
]
},
"hx-disable-elt": {
"prefix": "hx-disable-elt",
"hx-disabled-elt": {
"prefix": "hx-disabled-elt",
"body": [
"hx-disable-elt=\"${1:this}\""
"hx-disabled-elt=\"${1:this}\""
],
"description": [
"adds the disabled attribute to the specified elements while a request is in flight\n",
Expand Down
2 changes: 1 addition & 1 deletion tests/go.templ
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ templ hello(name string) {
hx-confirm=""
hx-delete=""
hx-disable
hx-disable-elt="this"
hx-disabled-elt="this"
hx-disinherit="*"
hx-encoding
hx-ext=""
Expand Down
2 changes: 1 addition & 1 deletion tests/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
hx-confirm=""
hx-delete=""
hx-disable
hx-disable-elt="this"
hx-disabled-elt="this"
hx-disinherit="*"
hx-encoding
hx-ext=""
Expand Down
2 changes: 1 addition & 1 deletion tests/test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function test(test) {
hx-confirm=""
hx-delete=""
hx-disable
hx-disable-elt="this"
hx-disabled-elt="this"
hx-disinherit="*"
hx-encoding
hx-ext=""
Expand Down
2 changes: 1 addition & 1 deletion tests/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
hx-confirm=""
hx-delete=""
hx-disable
hx-disable-elt="this"
hx-disabled-elt="this"
hx-disinherit="*"
hx-encoding
hx-ext=""
Expand Down
2 changes: 1 addition & 1 deletion tests/tsx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function test(test: any) {
hx-confirm=""
hx-delete=""
hx-disable
hx-disable-elt="this"
hx-disabled-elt="this"
hx-disinherit="*"
hx-encoding
hx-ext=""
Expand Down

0 comments on commit 828d269

Please sign in to comment.