This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Description
See http://jsfiddle.net/p02Ls1dh/3/
mdDialog would be perfect for a quick entry panel, but it sets focus on the last button by default and if you try to use <form> for handling submit it breaks.
So maybe $mdDialog should:
- support a
.md-dialog-focus class to set the focus
- bind the enter key for the
.dialog-close button
- shouldn't that be
.md-dialog-close?
|
var closeButton = element[0].querySelector('.dialog-close'); |
PS: I needed to put type=button on the cancel md-button so the form wouldn't click Cancel but Submit when typing <Enter>. Is that a bug with md-button or is that expected?