Skip to content

AST trows a warning for a button with theme with states #15178

@KacperMadej

Description

@KacperMadej

Behaviour

If states are used in buttonTheme I get a warning in the console:
Highcharts warning: Invalid attribute 'states' in config

Live demo with steps to reproduce

https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/rangeselector/styling/

or

https://api.highcharts.com/highcharts/chart.resetZoomButton.theme
Steps: zoom to show the button -> warning

Product version

v9.0.0+

Workaround

Ignore it - everything works fine anyway.

Internal notes

states end up in normalState (from the theme), but could be safely deleted before running AST.filterUserAttributes(normalState) because normalState is already a copy and states are provided to SVGRenderer.prototype.button as arguments and later used from them

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions