Closed diegodlh closed 3 days ago
Making the input component React-controlled, by passing the state variable value as its value prop, seems to solve both #292 and #293 in a simpler and more React-y way.
input
value
Remember this input component was introduced to replace an Editable component around 973e924 until we found a way to import Zotero components. See https://github.com/diegodlh/zotero-cita/commit/f1792e787db2d97a7544af48d118a517e6804f2c#r146509552
Editable
I quickly tested this and it seems to work well in the main Zotero pane, but in the citation editor I get the following bug:
This should have been fixed by #300
298 and #299 were merged to fix #292 and #293. But they seem a bit hacky to me.
Making the
input
component React-controlled, by passing the state variablevalue
as itsvalue
prop, seems to solve both #292 and #293 in a simpler and more React-y way.Remember this
input
component was introduced to replace anEditable
component around 973e924 until we found a way to import Zotero components. See https://github.com/diegodlh/zotero-cita/commit/f1792e787db2d97a7544af48d118a517e6804f2c#r146509552