Skip to content

Commit

Permalink
Remove CSS option no longer supported in Chart.js
Browse files Browse the repository at this point in the history
From the migration notes for version 3 noting the
removal of Chart.platform:

    It only contained disableCSSInjection. CSS is never injected in v3.

https://www.chartjs.org/docs/master/migration/v3-migration.html
  • Loading branch information
cbrandtbuffalo committed Dec 4, 2024
1 parent 2cdaa33 commit aa31c37
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions share/static/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,6 @@ jQuery(function() {
this.$element.val('').change().focus();
};

Chart.platform.disableCSSInjection = true;

// Make actions dropdown scrollable in case screen is too short
jQuery(window).resize(function() {
jQuery('#li-page-actions > ul').css('max-height', jQuery(window).height() - jQuery('#rt-header-container').height());
Expand Down

0 comments on commit aa31c37

Please sign in to comment.