Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider の Thumb が適切に動作しない #1

Closed
nikogoli opened this issue Nov 6, 2023 · 1 comment
Closed

Slider の Thumb が適切に動作しない #1

nikogoli opened this issue Nov 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@nikogoli
Copy link
Owner

nikogoli commented Nov 6, 2023

SliderPrimitive.Thumb における 当該スライダーの index 取得がうまくいかず、index = -1 となって Tumb に style="{dispaly: none}" が設定されてしまう。
( useEffect を介した index の再設定が行われず、最初のスライダー未設定でのレンダリング時の設定が保持されていると思われる )

radix-ui 側の issue
preact 側の issue

@nikogoli nikogoli added the bug Something isn't working label Nov 6, 2023
@nikogoli
Copy link
Owner Author

Thumb について composedRefs を使用(経由)せず、素直に useRef に Thumb element を格納して参照させることで解決できた。

詳細は右の commit を参照 nikogoli/testing_shadcn_ui_for_deno@c2d7b7a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant