Comments (15)
Maybe I should make a new tag, like v1.1
from formidable.
I tagged master v1.1.0
, so depending on *
or 1.*
should work now
from formidable.
Hello,
This is indeed a reproductible bug
from formidable.
Thanks for reporting
Should be fixed in master, can you confirm and close?
from formidable.
@Gregwar the order is fixed. But, the empty option in first position continues:
<select name="estado" id="estado" >
<option value=""></option>
<option selected="selected" value="">- selecione -</option>
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
...
</select>
<select name="estado" id="estado">
<option value="">- selecione -</option>
<options source="estados" />
</select>
from formidable.
from formidable.
from formidable.
@Gregwar I understand, But I desire set the "label" of this blank option.
from formidable.
My idea
Add a attribute flag, named as without-empty-item
, (won't replicated as element attributes) that says: this <select>
hasn't a default empty option, without to use required attribute. But, if element is set as required, the default empty option won't added like before.
Example:
<select name="estado" id="estado" without-empty-item>
<option value="">- selecione -</option>
<options source="estados" />
</select>
OR add attributes to set de value and label of default empty option:
Example:
<select name="estado" id="estado" empty-item-value="0" empty-item-label="- selecione -">
<options source="estados" />
</select>
What do you think?
from formidable.
from formidable.
@Gregwar I agree with you :D
from formidable.
Ok, it's done, tell me if it's OK for you
from formidable.
I'm glad with that solution. Thank you so much @Gregwar.
from formidable.
@Gregwar you will make a new release?
from formidable.
Many thanks @Gregwar :D
from formidable.
Related Issues (20)
- Many constraints validation per fields HOT 9
- MulticheckboxField getValue and setValue are incompatible. HOT 2
- No phpunit specified in composer HOT 3
- Include composer.lock file HOT 3
- <select><option ... is not processed correctly HOT 7
- lazy parse HOT 3
- Option to return callback result from handle() HOT 1
- Support for input type button HOT 3
- Use of 'source=""' for select in 'multiple' doesn't work HOT 2
- Render of 'date' input is incorrect HOT 3
- Date field doesn't processing default value
- Add support for additional input types
- minlength attribute is not output in HTML HOT 1
- Regex should output HTML "pattern" attribute on inputs HOT 2
- input type checkbox generating value attribute twice
- Attributes with single quotes not working in form HOT 9
- <select> elements lose the "required" HTML attribute after parsing
- Use the same placeholder multiple times HOT 2
- Use the same source multiple times HOT 2
- Input type="number" constraint validation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formidable.