Closed
Description
Hi there,
I'd like the first option of a select field to act more a placeholder, like 'Select a source'. The issue I don't want this to be a valid option. Currently with angular schema form it will validate as successful.
I'm thinking I need to add a 'disabled' attribute to it, but don't know how to do with angular schema form.
Metadata
Metadata
Assignees
Labels
No labels
Activity
stramel commentedon Jun 3, 2015
@sharpmachine This seems related to #216 unless I misunderstood what you were trying to get at.
sharpmachine commentedon Jun 3, 2015
Hi, I've tried the suggestion in the original issue and it's not exactly working. It's not selecting N/A as the default. It just adds a blank option:
Here's my code:
davidlgj commentedon Jun 12, 2015
It's not a disabled attribute you want but an extra option tag. I've been working of and on merging this PR #294 that fixes it. But I like a bit cleaner solution to the problem. I can't give any estimates on when, but its coming.