Material: Missing input[type='submit']

Created on 16 Nov 2014  路  6Comments  路  Source: angular/material

Hello,
I'm missing the input type 'submit'.
<md-button /> doesn't seem to support the type attribute that <md-text-float /> have.
Is this an oversight, or am I just missing the relevant documentation?

Most helpful comment

Does this not work for you (using the latest committed code)?

<md-button type='submit'>Submit</md-button>

If not, please provide a plunker or codepen demonstrating this issue.

All 6 comments

Does this not work for you (using the latest committed code)?

<md-button type='submit'>Submit</md-button>

If not, please provide a plunker or codepen demonstrating this issue.

I'm using the latest bower package (https://github.com/angular/bower-material/releases/tag/v0.5.1-master-af1a5ca), and I get the following:

<button type="submit" class="md-button-inner">Login</button>

Can't you use <button class="md-button" type="submit">Login</button>?

Perhaps I should read the specs first next time.

@Evanion I may have misspoken. The preferred method is to use <md-button>. To work correctly, type="submit" should be copied to the nested, native button so that it will fire submit events. I just validated this on Plunker: http://plnkr.co/edit/np1n4JicBQEc2EuAgDQj

Well since md-button copies the type attribute to the

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

Dona278 picture Dona278  路  3Comments

nikhildev picture nikhildev  路  3Comments

bobber205 picture bobber205  路  3Comments

epelc picture epelc  路  3Comments