when mouse is over the legend it is throwing an error as "Uncaught TypeError: Failed to construct \'MouseEvent\': member sourceCapabilities is not of type InputDeviceCa