alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Is there any possibility of leaving the super-select field required? #104

Closed eduardobarbiero closed 7 years ago

eduardobarbiero commented 7 years ago

In some specific cases we can add a markup tag and a break in the form submit to prevent submitting when there are incorrect occurrences in the form.

<em id="name-error" class="invalid">Required field.</em>

If there is any interest on the part of the master of the component, I can assist in the development.

alsoscotland commented 7 years ago

@eduardobarbiero Always happy to have help but I am not following exactly. Can you please explain the scenario a bit further?

eduardobarbiero commented 7 years ago

Hello @alsoscotland!

Basically leave the field created by super-select as required within a form, preventing the submit if the value not is expected (a blank value for example).

Did i express myself well?

alsoscotland commented 7 years ago

@eduardobarbiero closing since per our conversation you found a workaround