File tree Expand file tree Collapse file tree 4 files changed +34
-20
lines changed Expand file tree Collapse file tree 4 files changed +34
-20
lines changed Original file line number Diff line number Diff line change 11<div ...attributes>
2- {{ #unless this.email.id }}
3- <div local-class =" row" >
4- <form local-class =" email-form" {{ on " submit" (prevent-default (perform this.saveEmailTask ))}} >
5- <Input @type =" email" @value ={{ this.value }} id =" email-input" placeholder =" Email" local-class =" input"
6- data-test-input {{ did-insert this.focus }} oninput ={{ this.validate }} />
7-
8- <div local-class =" actions" >
9- <button type =' submit' local-class =" save-button" class =" button button--small" disabled ={{ not this.isValid }}
10- data-test-save-button>
11- Verify
12- </button >
13- </div >
14- </form >
15- </div >
16- {{ else }}
2+ {{ #if this.email.id }}
173 <div local-class =" row" >
184 <div local-class =" email-column" data-test-email-address>
195 <dd >
5945 {{ /if }}
6046 </div >
6147 </div >
62- {{ /unless }}
48+ {{ else }}
49+ <div local-class =" row" >
50+ <form local-class =" email-form" {{ on " submit" (prevent-default (perform this.saveEmailTask ))}} >
51+ <Input @type =" email" @value ={{ this.value }} id =" email-input" placeholder =" Email" local-class =" input"
52+ data-test-input {{ autofocus }} oninput ={{ this.validate }} />
53+
54+ <div local-class =" actions" >
55+ <button type =' submit' local-class =" save-button" class =" button button--small" disabled ={{ not this.isValid }}
56+ data-test-save-button>
57+ Verify
58+ </button >
59+ </div >
60+ </form >
61+ </div >
62+ {{ /if }}
6363
6464</div >
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ export default class EmailInput extends Component {
1313 @tracked value ;
1414 @tracked disableResend = false ;
1515
16- @action focus ( element ) {
17- element . focus ( ) ;
18- }
19-
2016 @action validate ( event ) {
2117 this . isValid = event . target . checkValidity ( ) ;
2218 }
Original file line number Diff line number Diff line change 4646 "@sentry/ember" : " 9.40.0" ,
4747 "chart.js" : " 4.5.0" ,
4848 "date-fns" : " 4.1.0" ,
49+ "ember-autofocus-modifier" : " ^7.0.1" ,
4950 "highlight.js" : " 11.11.1" ,
5051 "macro-decorators" : " 0.1.2" ,
5152 "mermaid" : " 11.9.0" ,
You can’t perform that action at this time.
0 commit comments