The selector "#groupPrice *" on hx-include returned no matches!
See original GitHub issueDescribe the bug
I just updated to latest Sprig and Craft and on certain sprig includes I am getting this console error
htmx.min.js:1 The selector “#groupPrice *” on hx-include returned no matches!
My component incldue looks like this
{{ sprig('_components/product/handpainted/price', {
activeProductVariant:activeProductVariant.id,
dimension:'piece'
}, {id: 'groupPrice','s-trigger': 'load'}) }}
I’m guessing contents on include wouldn’t affect things
I can DM you a link to live page if needed
Versions
- Plugin version:1.12.0
- Craft version:3.7.36
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
Which filters did it not match? · Issue #1858 - GitHub
I've tried adding visible: true, count: 1 just in case it was accidentally invisible or the count default was something else. same behavior....
Read more >html - &extend showing no matches when element exists
So, when trying to extend a nested selector, we should provide the full selector in the extend and not just the inner selector....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in https://github.com/putyourlightson/craft-sprig-core/commit/49bf3a0e0e706ab60017e7445b06f3d60837f834 and released in version 1.12.1.
@studiobruikbaar I tried adding text (no html) in the else, adding a
<div></div>
in the else fixes it, thanks!