Skip to content

Prefilling with Localstorage-Values is messing with "real" content in forms #27

@koernchen02

Description

@koernchen02

I have an php-based Application, where a user can create and edit posts.
When I edit any post and submit the form, the Localstorage does not get flushed automatically, which prefills the textarea marked with data-widearea= true" whenever I edit another post. Of course, the Text coming from the localstorage is not the correct content when I edit another post/record, since it is the textareas content coming from the "last-edited" post.

Would it be possible to automatically call wideArea().clearData() whenever a form is submitted?

I know this is kind of an individual problem, but I can Imagine a lot of people are using wideare.js in contexts, where editing Records via the same form-templates is a normal workflow…

I'm sticking to v0.2 for now… just wanted to let you know!

Best regards and thanks for your great js-libraries!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions