Replies: 3 comments 1 reply
-
I've ended up working around both the above, and do not think they should be used to drive any changes necessarily. |
Beta Was this translation helpful? Give feedback.
-
(About the attribute casing issue, it should retain casing, it only modifies '-' to '_' to make the var accessible) |
Beta Was this translation helpful? Give feedback.
-
@wrabit is |
Beta Was this translation helpful? Give feedback.
-
Couldn't find documentation for these, apologies and please link me if it exists. Perhaps I am using things incorrectly.
for reference i am on django-cotton (1.0.4)
1) nested
attrs
don't seem to be passed all the way downmy_view.html
<c-arrow class="absolute right-3 top-1/2 transform -translate-y-1/2 h-5 w-5 text-gray-500" />
arrow.html
svg.html
it doesn't appear the
class=...
will make it to svg.html's{{ attrs }}
. I would expect it would, because arrow.html hasc-svg {{ attrs }}
that attrs (class=...) be passed to svg.html as attrsclass
not sent in attrs?seems like i need to do
<input type="text" {{ attrs }} class="{{ class }}">
rather than just
<input type="text" {{ attrs }}>
assuming the calling function adds a
class="xyz"
attrBeta Was this translation helpful? Give feedback.
All reactions