Doesn't handle negative values

Created on 6 July 2023, about 1 year ago
Updated 7 July 2023, about 1 year ago

Problem/Motivation

I have a use case for a facet ranging in value from -4 to 13. Values from/including 0 to 13 are recognised as active, but values < 0 are not.

Steps to reproduce

Define a facet with a range including negative values. Observe that values < 0 are not flagged as active.

Proposed resolution

Alter regex in getActiveMinMax() from matching only digits via \d to also matching sign via -?\d

🐛 Bug report
Status

Closed: works as designed

Component

Code

Created by

🇳🇿New Zealand jonathan_hunt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024