earthcube / facetsearch

This is the main code base for the EarthCube GeoCODES search interface. Issues with UI operation should be posted in the issue tracker here.
3 stars 2 forks source link

Year Published Range bar is not working #148

Open ylyangtw opened 3 days ago

ylyangtw commented 3 days ago

Please see this example: https://ecoforecast.geocodes-aws.earthcube.org/#/search/?q=water+temperature&resourceType=all

valentinedwv commented 3 days ago

Issue is with vue proxy object thing passed to component that had no idea how to handle it. the method to handle this is to pass a toRaw(proxy)

https://github.com/earthcube/facetsearch/blob/49848672d53a9dcd9fda6f3a6dc2f981d18d314b/client/src/components/facetsearch/FacetNumericRangeSlider.vue#L34-37

https://chrysanthos.xyz/article/how-to-get-the-data-of-a-proxy-object-in-vue-js-3/

also can google: vue3 proxy object to array

valentinedwv commented 1 day ago

from the component we are using: https://github.com/xwpongithub/vue-range-slider/issues

This is probably and issue to do with the compoent. update to a new range slider

https://www.npmjs.com/package/vue-range-multi

https://github.com/wiidede/vue-range-multi