Skip to content

Accessibility. point.id.indexOf is not a function #17401

Closed
@dknight

Description

@dknight

Expected behaviour

In accessibility module's medthod getPointXDescription() there is a chunk

point.id.indexOf('highcharts-') < 0

but point.id might be a number, Number class doesn't have method indexOf This causes the error TypeError: point.id.indexOf is not a function

Actual behaviour

String(point.id).indexOf('highcharts-') < 0

Product version

Highcharts, 10.1.0

Affected browser(s)

All

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions