Skip to content

Commit

Permalink
Fixed tooltipHoverFormatter not being deserialized as a function
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkyTD committed Apr 27, 2024
1 parent 5d8fc77 commit ac256de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blazor-ApexCharts/wwwroot/js/blazor-apexcharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ window.blazor_apexchart = {

parseOptions(options) {
return JSON.parse(options, (key, value) => {
if ((key === 'formatter' || key === 'dateFormatter' || key === 'custom' || key === 'click' || key === 'mouseEnter' || key === 'mouseLeave') && value.length !== 0) {
if ((key === 'formatter' || key === 'dateFormatter' || key === 'custom' || key === 'click' || key === 'mouseEnter' || key === 'mouseLeave' || key === 'tooltipHoverFormatter') && value.length !== 0) {
if (Array.isArray(value))
return value.map(item => eval?.("'use strict'; (" + item + ")"));
else
Expand Down

0 comments on commit ac256de

Please sign in to comment.