Doma

Results 127 comments of Doma

Hi @daggmano, you may use `toggleAs` prop of picker components to specify a custom component for rendering the toggle button. Please see if that helps.

> I think the above is for @dgastudio ... Oops, sorry for the wrong mention😅. It was an auto-complete.

> in case of simple example, toggleAs={(value) => div} > > i'm getting > > Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did...

I'm routing this issue to @simonguo as it's related to Picker's `ref` API and Overlay.

> I have been able to use rsuite in the latest version of next.js (13.4.15) using their app router. The problem is that I have to define "use client" at...

也许你可以把渲染的数组顺序倒过来? ```js timelineData.reverse() ```

> 感觉很奇怪, 为什么“ isItemActive” 这个prop不放在item上,而是放在``上面 如果放在 Timeline.Item 上,难以直观地覆盖默认的“最后一个条目显示为高亮”行为。 ```jsx First item Second item Third item // 你会需要额外为最后一个条目设置 `isItemActive=false` ``` > 或者应该命名为`setActiveItem`,因为你要求的value是一个function,而不是boolean 从我的感受来说,`isItemActive` 用作一个返回 boolean 的纯函数命名我觉得没有什么问题(“这个 item 是 active 的吗?”),反而 `setActiveItem`...

Similar issue exists with `toolbox` component, as mentioned in https://github.com/rsuite/charts/issues/83#issuecomment-1378187910.

Fixed in #2984 and released in [v5.24.0](https://github.com/rsuite/rsuite/releases/tag/v5.24.0)

React 18 `useId` is adopted now.