chakra-ui / ark

Ark UI is a headless UI library with over 45+ components designed to build scalable Design Systems that works for a wide range of JS frameworks.
https://ark-ui.com
MIT License
3.78k stars 106 forks source link

vue range slider example from the docs crashes #2751

Closed stefanprobst closed 3 months ago

stefanprobst commented 3 months ago

Description

The vue range slider example from the docs crashed with the following error:

Cannot read properties of undefined (reading 'max')

at Proxy. (./node_modules/.pnpm/@ark-ui+vue@3.7.2_vue@3.4.37/node_modules/@ark-ui/vue/dist/components/slider/slider-thumb.js.js:18:80)

the only difference to the react example is the missing defaultValue. note that the react example also crashes when i remove the defaultValue prop.

Link to Reproduction (or Detailed Explanation)

https://github.com/stefanprobst/issue-ark-ui-slider

Steps to Reproduce

Ark UI Version

3.7.2

Framework

Browser

firefox 128

Additional Information

No response

segunadebayo commented 3 months ago

This is a docs/example issue. The default value or value is required when using a range slider.

segunadebayo commented 3 months ago

I've updated the docs accordingly