score:13
It's been a while but I've faced such issues always when I had nested components with the same type of eventListener attached. For example an outer component with an onClick prop and an inner element with another onClick prop.
if the inner one gets clicked the event bubbles up to the outer and the onClick callback of the outer element gets called too. Within the stack trace you see now that it was invoked by the invokeGuardedCallback
to stop the event from bubbling up, call
event.stopPropagation();
within the callback function of the inner element.
There might be other scenarios where the ivokeGuardedCallback could invoke a callback - to make sure you could always go read the code.
Source: stackoverflow.com
Related Query
- ReactErrorUtils.invokeGuardedCallback in React fires event repeatedly in IE browser
- React plot options onclick event
- Access props and state of current component in React JS within an event handler
- Preventing event from executing consecutive times React
- How can I pass values from Highcharts event callbacks (click, mouseOver, mouseOut) back to React component member function?
- How can I make React Native in Android aware of a click event in a tooltip in a Highcharts chart?
- react-highcharts Y-axis categories catch event click in react way
- Strange character in the Highstock source code
- Highcharts checkboxes multiply when window resize event fires
- How to prevent a React onClick event from being consumed by child
- Old state is being shown despite updating in React Highcharts click event
- Event afterSetExtremes is firing repeatedly with Highstock 1.3.0
- How to access React hook state in Highcharts event listener
- Removing event Listeners in react using highcharts
- Highchart - Column chart - Drilldown event fires many times
- Highcharts - manually trigger hover event on a point
- How do I detect a zoom event in highcharts?
- How do I add an event listener to a Highcharts object *AFTER* I've created it
- World map paths data in react high charts
- Highcharts - fire legendItemClick event
- Highcharts - Double click event
- Highcharts chart click event fired on click of the reset zoom button (bug?)
- Dynamically update Highcharts chart in react
- Optimize JavaScript DrillDown code
- programmatically trigger click event in svg rect element
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- Click event on clicking on the graph
- highcharts how to catch and insert logic in click reset zoom button event
- highmaps get country name on click event
- Append onload or redraw event functions dynamically in Highcharts
More Query from same tag
- Add dataLabels to solid guage
- Is it better to update a Highcharts chart or destroy and recreate it?
- Timeline / Schedule in highcharts
- Highcharts: dynamically updating chart per click of a button
- How to disable LegendClick event in HighCharts using the Objective-C wrapper?
- Bar chart with wrong bar height
- Customize colors for boxplot with highcharter
- Highcharts: how to change line color when hovering a scatterplot series
- How to render html with highcharts in ionic 2
- Not rendering VU-meter Gauge chart using HighCharts in Durandal
- How to convert datetime string to UTC to plot points on Highcharts
- Changing Highcharts data series type dynamically
- Highcharts Error: <rect> attribute x: Expected length, "NaN"
- Duplicate, Off-Screen Chart
- Angular 11 - How to import array data into highcharts
- Rails: Pie Charts legend in Chartkicks
- Highcharts - Pinch zoom does not work on chart with multiple y axes
- Highcharts: how to use multiple line formats in one series?
- Highcharts 3D Scatter Plot, pop up's and links after rotation
- How to call a Jquery automatically after a Div is created?
- Showing marker for separate values only in line chart in HIghchart
- Legend in network graph ( Highchart Js)
- Showing up highchart after submitting form in other file
- grouping date in Highcharts if the date range is too big
- Formatting Highchart bar charts axis labels
- Adding a highchart to a Leaflet Popup
- react-highcharts vs highcharts
- How do I remove unused xaxis values from Highcharts?
- Prevent Highchart.js from cutting xAxis label
- HighCharts.js is not rendering chart under IE8