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.

Disabled option tag in FormSelect component

See original GitHub issue

I’m using FormSelect component in my app, but I can’t find props to disable the last option. Here is an example code what I want to do.

const opts = {
  { label: 'A', value: 'a' },
  { label: 'B', value: 'b' },
  { label: 'C', value: 'c', disabled: true },
};

// ...

<FormSelect options={opts} />

Is there anyone working on this? If not, I’d like to tackle.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
jossmaccommented, Sep 15, 2016

@chexers are you okay? It looks like you passed out on your keyboard…

0reactions
chexerscommented, Sep 15, 2016

Eereerrreeeeeeeeeeeeeeeeereeeeeeereeee On Sep 13, 2016 1:05 AM, “Yuki Kodama” notifications@github.com wrote:

e @jossmac Thanks for merging! I’ll one more PR for updatinge documentation.eeeeeeeeeeereeerreeeeeereeeeeeeeeeeeeeeeeeeereeeeeeeeeeeeeeeeeereeeeeeeeeeeereeeeeeeeeeeeeeeeeeeeereE — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conditionally disabled select option in React - Stack Overflow
I get an error that crashes the app. What is the correct syntax for conditionally writing a directive value into a tag with...
Read more >
How to disable select till a value is given in previous sele
I mainly use this to allow for the user to select only whats necessary from the form. Example via React-Materalize (Open Sourced React...
Read more >
HTML select disabled Attribute - W3Schools
Definition and Usage. The disabled attribute is a boolean attribute. When present, it specifies that the drop-down list should be disabled.
Read more >
How to Disable First option in Form Dropdown (select menu)
Solution by code. Step 1 - Add id. Add id for the select menu (Otherwise by mistake you could disable other options menus)....
Read more >
Form Select | Components - BootstrapVue
This slot appears above the options from 'options' prop --> <template #first> <b-form-select-option :value="null" disabled>-- Please select an option ...
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