<Textarea ../> with `@id` has `require-input-label` template lint error
See original GitHub issuePer ember documentation on associating labels and inputs for <Input>
and <Textarea>
built in components, we need to pass @id
and not id
. However if I do the following I get a require-input-label
template lint error.
<label for="enter-ids-textarea" class="t-14">Some label</label>
<Textarea
class="mt1"
@id="enter-ids-textarea"
placeholder=" placeholder"
rows="10"
{{on "input" this.someAction}
/>
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
require-input-label - ember-template-lint - GitHub
This rule checks to see if the input is contained by a label element. If it is not, it checks to see if...
Read more >ember-template-lint - Bountysource
This is useful when a rule provides a default error message and the opportunity to customize such error message. Using placeholders users are...
Read more >Textarea Label in Form: Error: The value of the for attribute of ...
I get the error: Error: The value of the for attribute of the label element must be the ID of a non-hidden form...
Read more >ember-template-lint | Yarn - Package Manager
ember-template-lint is a library that will lint your handlebars template and return error results. For example, if the rule no-bare-strings is enabled, ...
Read more >ember-template-lint - npm
Name ✓ 💅 🔧
attribute‑order 🔧
block‑indentation 💅 🔧
builtin‑component‑arguments ✓
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@afzal273 good points for docs! Linking it here: https://github.com/ember-learn/guides-source/issues/1728
Closing as requested above.