Closed callinmullaney closed 1 year ago
@callinmullaney What would you like to do about the comment from @WidgetsBurritos ?
@callinmullaney Opened a PR here to fix a problem I encountered.
Anytime I included a single number I would get an error that prevented the component from rendering. The error was value.includes is not a function
. This is because includes
can't run on a number, so I did a check for string there.
Let me know what you think.
@ryanhagerty I tested/merged you values.includes
. I think this PR is ready for you to confirm.
Summary
This PR fixes/implements the following bugs/features
add_attributes
functionExplain the motivation for making this change. What existing problem does the pull request solve?
colspan
for<td>
elements. Currently, this value must be converted to a string BEFORE being passed toadd_attributes()
Documentation Update (required)
How to review this PR
{% set test_attributes = test_attributes|merge({ 'data-test-integer': [123, 243523], }) %}
<div {{ add_attributes(test_attributes) }}>