Skip to content

Proposal about forms #478

Open
Open
@PaulMaly

Description

@PaulMaly

Hi, @matthewp! I've an idea:

<form method="GET" action="/products">
   <input name="q" type="search" placeholder="Search...">
   <button>Search</button>
</form>

the result of this form submissing will be URL changes:

/products?q=Macbook

So, maybe it's a good idea to provide an option for handling GET-forms by the router? Just like we already handle all links. It could be something like this:

page.start({
   click: true,
   submit: true
});

I can provide a PR for these changes if you don't mind.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions