how to get two class managers to cooperate on a single ref?

I’m making a currency input field that is supposed to interact with a 3rd party slider class that expects a native html input element to manipulate when the slider changes. So I’ve been trying to use the callback version of the ref to set the props.ref to a proxy wrapped version of the elements’s ref that can intercept the .value reads and writes the slider manager is trying to do. But I’m getting the error ”Cannot set properly ref of #<Object> which has only a getter” so I don’t think that’s possible. This all feels really janky though so is there a better way to get this to work? Right now they bounce back and forth between the numeric value and the currency value depending on who operated on the input field last.
0 Replies
No replies yetBe the first to reply to this messageJoin