Repository navigation
Optional EventListener on Chart.to_js_literal - #131
Conversation
|
Thanks, @ByronCook ! Definitely appreciate the PR. I'll review it shortly and hopefully merge it in for the next minor release. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #131 +/- ##
===========================================
- Coverage 88.25% 88.24% -0.01%
===========================================
Files 209 209
Lines 30472 30475 +3
Branches 2434 2436 +2
===========================================
Hits 26892 26892
- Misses 2669 2670 +1
- Partials 911 913 +2
☔ View full report in Codecov by Sentry. |
hcpchris
left a comment
There was a problem hiding this comment.
Thanks, @ByronCook ! This PR looks good, and it's a welcome addition to the method! I'm going to merge it into the rc-v.1.6 branch that I'm using for our v.1.6 release. Before we roll v.1.6 out, there are some other things that we'll be merging in, and within this PR itself I'm also going to add some docstring details, but I definitely appreciate you filing this PR with this tweak. Thanks!
Please ignore all the line ending diff's. (I'm guessing it's because I'm on Linux or haven't configured my Git client to ignore it)
The change is on line 512/513 and 602-608
I needed a chart which doesn't require an eventlistener as it's loaded on click using HTMX instead of JS, because I'm using HTMX, the DOMContentLoaded isn't being triggered. Using this change I can have the JS code executed immediately instead. This change also allows you to use any other EventListener by providing it as a string.