reagent-project / reagent

A minimalistic ClojureScript interface to React.js
http://reagent-project.github.io/
MIT License
4.76k stars 414 forks source link

Input workaround breaks if using react/createRef with input #521

Closed Deraen closed 3 years ago

Deraen commented 3 years ago

https://github.com/reagent-project/reagent/blob/master/src/reagent/impl/input.cljs#L96-L105

Input workaround presumes the original ref value is function.

But createRef value doesn't work exactly like function.