Closed disintegrator closed 1 year ago
Nice, thanks!
@jamesremuscat let me know if this fixes your problem and we'll get this merged.
@ryanseddon fwiw, I did encounter the same bug as @jamesremuscat and fixed it with this (failed to mention it in the PR). If they don’t reply any time soon, I still think it’ll be worth going ahead with it.
Closes #225
This change updates the type of the default export of this library to correct match what's in the JS code.
Previously, the types indicated the default export was a class component which resulted in an invalid defintion of the
ref
prop. In reality, the default export was function component returned fromReact.forwardRef
.I've tested this change in types locally with the following snippet:
You can ignore a bunch of that code. The main bit was the
iframeRef
returned fromuseRef
was assignable to theFrame
'sref
prop.