question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add required attribute

See original GitHub issue

Similarly to any other html form elements, they have a required attribute and if set, won’t let the form submit until that form element has have a value. Would be good to have such an attribute for ember-power-select as well in order to become a html-like regular form element.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
gossicommented, Jan 4, 2019

Fake input or not or replacement to a standard one, it is a form element and by that should also behave like that. If a hidden input can’t be required, you can use a regular input, style it to be display: none;, pass all input-field related args and attributes on that element and bind the value to the value of eps.

0reactions
FutoRickycommented, Jan 4, 2019

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery add required to input fields - javascript - Stack Overflow
required is a boolean attribute and should only ever be omitted (for "false"), or have the same value as its name (i.e. "required"...
Read more >
HTML input required Attribute - W3Schools
The required attribute is a boolean attribute. When present, it specifies that an input field must be filled out before submitting the form....
Read more >
HTML attribute: required - HTML: HyperText Markup Language
The Boolean required attribute, if present, indicates that the user must specify a value for the input before the owning form can be ......
Read more >
jQuery - add required to input - CodePen
URL Extension Required. When linking another Pen as a resource, make sure you use a URL Extension of the type of code you...
Read more >
3 Examples of HTML Required Attribute - eduCBA
To mark a field as simple is to add the “required “attribute into the input element. The below code shows how the required...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found