GithubHelp home page GithubHelp logo

Comments (15)

Gregwar avatar Gregwar commented on May 18, 2024 1

Maybe I should make a new tag, like v1.1

from formidable.

Gregwar avatar Gregwar commented on May 18, 2024 1

I tagged master v1.1.0, so depending on * or 1.* should work now

from formidable.

Gregwar avatar Gregwar commented on May 18, 2024

Hello,

This is indeed a reproductible bug

from formidable.

Gregwar avatar Gregwar commented on May 18, 2024

Thanks for reporting
Should be fixed in master, can you confirm and close?

from formidable.

silasrm avatar silasrm commented on May 18, 2024

@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.

Gregwar avatar Gregwar commented on May 18, 2024

from formidable.

Gregwar avatar Gregwar commented on May 18, 2024

from formidable.

silasrm avatar silasrm commented on May 18, 2024

@Gregwar I understand, But I desire set the "label" of this blank option.

from formidable.

silasrm avatar silasrm commented on May 18, 2024

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.

Gregwar avatar Gregwar commented on May 18, 2024

from formidable.

silasrm avatar silasrm commented on May 18, 2024

@Gregwar I agree with you :D

from formidable.

Gregwar avatar Gregwar commented on May 18, 2024

Ok, it's done, tell me if it's OK for you

from formidable.

silasrm avatar silasrm commented on May 18, 2024

I'm glad with that solution. Thank you so much @Gregwar.

from formidable.

silasrm avatar silasrm commented on May 18, 2024

@Gregwar you will make a new release?

from formidable.

silasrm avatar silasrm commented on May 18, 2024

Many thanks @Gregwar :D

from formidable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.