Base solution for your next web application
Open Closed

Editing entity, after safe it calls ClearForm - which resets the form to previous values? #9212


User avatar
0
marble68 created

8.7, jQuery

I have an entity, after editing, it saves, and the ajax calls fires clearForm().

Clear Form is:

        function clearForm(){
            _$employeeInformationForm[0].reset();
        }
        

This erases all edits. If the user hits save it overwrites their changes.

Same thing when adding an entity.

Shouldn't the entity refresh?


3 Answer(s)
  • User Avatar
    0
    marble68 created

    I think I see a bug fix in 8.9.2 for this, I think.

    These are non-modal CreateOrEdit forms.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @marble68

    8.9.2 doesn't contain such a bugfix, see https://github.com/aspnetzero/aspnet-zero-core/milestone/75?closed=1.

    We will test it and get back to you.

  • User Avatar
    0
    musa.demir created

    Hi @marble68 It is still in progress, it will be as described here: https://github.com/aspnetzero/aspnet-zero-core/issues/3315#issuecomment-635847888