bigskysoftware / bigskysoftware/htmx
Allow selectors to return no matches.
Open
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
I have a selector on an `hx-include` that looks like this: `input[name=pk]` where the inputs are 0 to N checkboxes. When there are 0 checkboxes I would like the behavior to be the same as if you had N checkboxes where none were selected. The request succeeds but i get this error in the console: The selector "image[name=pk]" on hx-include returned no matches! It would be nice to have a way to disable this error. Would it be possible to get a ` optional:true` tag so that these errors don't pollute the console?
Contributor guide
Assessment
This issue has not been assessed yet.