Facet Range Widget filters out the highest result in case of decimal values

Created on 15 December 2021, over 2 years ago
Updated 14 February 2024, 5 months ago

Problem/Motivation

3 product with prices:
- 98.5
- 919
- 989

If I set the step to 1, the widget renders with this interval: 98.5 - 988.5. By default, when the price facet doesn't add params to the URL, all products are listed. If someone clicks to the facet and even if he doesn't change the selected intervel, the product with 989 $ gets omitted every time.

I tried modifying the range step to a lower precision but that breaks the whole widget with modulo zero error. I opened another task for that: πŸ› Facet Range Widget throws error when step is set to lower than one Needs work

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024