PanelResizeHandle doesn't trigger cursor change on hover after changing disabled state
Right after changing the disabled prop of a PanelResizeHandle from true to false, the data-resize-handle-state doesn't update on hover.
Reproduce
- render
<PanelResizeHandle disabled={true} /> - change
disabledtofalse - hover over the
PanelResizeHandle.
Expected
the cursor changes to a resize and the data-resize-handle-state attribute changes from inactive to hover
Actual
The cursor doesn't change and the data-resize-handle-state attribute is still inactive
NOTE: Clicking anywhere on the page fixes this. Resizing itself is not broken, just the hover state.
I am willing to look into this and PR if welcome
Hey @Sam-Apostel! Pull requests for things like this are always welcome. As are some kind of runnable repro case (Code Sandbox, or a GitHub project that I can checkout and run)
Running in this also, when first loading your example page, you may reproduce like this:
- visit page first time
- go back to "Home"
- select another example page (eg "nested groups")
- hover over resize handles
- no "resizable" action being indicated by cursor (=
stylenot injected inhead) - click somewhere on the page, hover resize handle = working as expected
Since this is my first time working with your great library, I'll see if I can look into this later! 😉
Right after changing the
disabledprop of aPanelResizeHandlefrom true to false, thedata-resize-handle-statedoesn't update on hover.在将一个PanelResizeHandle的disabled属性从 true 改为 false 后,鼠标悬停时data-resize-handle-state不会更新。Reproduce 复制
- render
<PanelResizeHandle disabled={true} />渲染<PanelResizeHandle disabled={true} />- change
disabledtofalse更改disabled为false- hover over the
PanelResizeHandle.Expected 预期
the cursor changes to a resize and the
data-resize-handle-stateattribute changes frominactivetohover光标变为调整大小,data-resize-handle-state属性从inactive变为hoverActual 实际
The cursor doesn't change and the
data-resize-handle-stateattribute is stillinactive光标没有变化,data-resize-handle-state属性仍然是inactiveNOTE: Clicking anywhere on the page fixes this. Resizing itself is not broken, just the hover state.注意:点击页面上的任何位置即可修复此问题。自身调整大小没有问题,只是悬停状态有问题。
I am willing to look into this and PR if welcome我愿意调查这个问题,如果欢迎的话,我会提交 PR
I also encountered this problem today, did you find a solution?
I'm encountering the same issue in my project. Is there any update on a solution?
Any update on this yet?