FIX: allows {{d-button}} to set a form attribute (#7056)

This attribute is used when a submit button is out of a form. It makes it explicit which form this button is submitting.

It's currently used in our login modal form.
This commit is contained in:
Joffrey JAFFEUX
2019-02-25 09:49:49 +01:00
committed by GitHub
parent 9faf058120
commit 919839fd97
3 changed files with 18 additions and 5 deletions
@@ -4,9 +4,12 @@ export default Ember.Component.extend({
// subclasses need this
layoutName: "components/d-button",
form: null,
tagName: "button",
classNameBindings: [":btn", "noText", "btnType"],
attributeBindings: [
"form",
"disabled",
"translatedTitle:title",
"translatedLabel:aria-label",