bigskysoftware / bigskysoftware/htmx
use setAttribute instead for hx-disable
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
here
https://github.com/bigskysoftware/htmx/blob/cfb5a2d0137cc827f5bde1c9ed1ab898beb6f4ad/src/htmx.js#L1767-L1779
you are setting with `el.disabled = true` but this only works on inputs, not div, sections, etc. If I want to do a css selection on the disabled state to hide specific content that is not input, I can't
open to do PR, just agree on the approach
Contributor guide
Research direction
Read src/htmx.js at lines 1767-1779, linked in the issue, and trace the hx-disable handling. Verify the disabled state can be selected on div and section elements as well as inputs; done means the requested behavior works consistently across those elements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100