Hey WeWeb community,
I’m currently looking for a solution regarding an input field. My input has an initial value and at first, readOnly
is set to true
. When the edit mode is activated, readOnly
switches to false
. This allows for new input to be entered into the field. However, if the editing is cancelled (with readOnly
returning to true
), the new input remains in the field (even though it isn’t saved in the backend). Is there a simple way to reset the input field to the initial value when the editing is cancelled? Am I missing something here? I’d like to avoid reloading the page if possible.
Thanks in advance!