appbaseio / appbaseio/reactivesearch

Unable to Remove Query / DynamicRangeSlider enforces value once active

Abierto
#1,096 6 comentarios 0 reacciones 1 asignado Reclamado por @ShahAnuj2610 Ver en GitHub
bug
Lenguaje dominante
JavaScript
Estrellas
4.9k
Forks
478
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Affected Projects**
React

**Library Version:** x.y.z
3.0.0-rc.25

**Describe the bug**
As soon as it rendered, the DynamicRangeSlider will enforce the range it displays. Items that don't have this field will not be matched anymore at all. In my case, that would be an optional memory filter for devices, while not all devices do have any memory.

The SelectedFilters component however doesn't show any hint yet, that a range query is applied.

Next I put rendering of the component under a boolean condition that I stored in state and added a toogle for that. Now as soon as I enable the toggle and the DynamicRange becomes active, the restriction is applied. When I toggle it off, the query stays restricted to that range. I first have to change another value in order to update the results without the range.

**To Reproduce**
I dont have quick sandbox example, might provide one later.

**Expected behavior**
1. If a Range is queried, always show it in `SelectedFilters`.
2. When the component is removed, remove the range from the query.

3. Idea to be more intuitive: Create a default disabled state for the DynamicRangeSlider, where the knobs are positioned at the min/max like they are now, but greyed out. Enable both when one of them has been dragged or clicked the first time, show some button that allows unselecting it again.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.