reflex icon indicating copy to clipboard operation
reflex copied to clipboard

About pc.editable event trigger "on_change"

Open Hspix opened this issue 1 year ago β€’ 1 comments

Describe the bug On pynecone gallery, https://pynecone.io/docs/library/forms/editable

pc.editable(
    pc.editable_preview(),
    pc.editable_input(),
    value=EditableState.example_state,
    on_change=EditableState.set_uppertext,
    width="100%",
)

When delete or insert some characters, the mouse cursor moves to the end forcefully. Besides, there is a lilltle "lag" or delayed display during typing.

Additional context Textarea component also act like this,

pc.text_area(
     value=State.set_text, placeholder="enter...",
     on_change=State.change_text,
 )

Hspix avatar Apr 28 '23 08:04 Hspix

Ah right. the fix(https://github.com/pynecone-io/pynecone/pull/871) for this was temporarily disabled due to a bug that was introduced. Should be fixed once there's a fix for that

ElijahAhianyo avatar Apr 28 '23 09:04 ElijahAhianyo