Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Can not set "method" dynamically #80

@eximius313

Description

@eximius313

When I have a form like this:

<form action="{{actionUrl}}" is="ajax-form" method="delete" id="myForm">
    <button type="submit" dialog-confirm>Submit</button>
</form>

Form works well and submits DELETE request under the URL represented by actionUrl
But when I do like this:

<form action="{{actionUrl}}" is="ajax-form" method="{{method}}" id="myForm">
    <button type="submit" dialog-confirm>Submit</button>
</form>

Form submits GET request under actionUrl even though I set it to delete

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions