google / google/material-design-lite

Expandable textfield in header does not work properly in a <form>

Open
#4,403 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
32.2k
Forks
4.9k
PR merge metrics
No merged PRs in 30d

Description

It seems that the expandable textfield, such as the search buttons in the [layout examples](https://getmdl.io/components/index.html#layout-section), does not work correctly if you surround the `` with a ``, i.e. the button would no longer expand to reveal the text box.

Is there a way around this? I ended up writing a handler in JavaScript to capture the ENTER keypress for the search box and then generate a `` with the correct inputs populated and then submit the form.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.