Giter Club home page Giter Club logo

Comments (7)

pmjones avatar pmjones commented on August 17, 2024

Hi @bsahlhof sorry to take so long to get back to you. Which Select issue was this, so I can look it up and apply a similar fix?

from aura.html.

pmjones avatar pmjones commented on August 17, 2024

Do you mean https://github.com/auraphp/Aura.Html/blob/develop-2/src/Helper/Input/Radio.php#L51-L59, perhaps? If that's the case, it's not necessarily wise to assume that an integer $value should use $label as the value instead, because it might be that the value is supposed to be an integer.

If that's not the case, let me know.

from aura.html.

bsahlhof avatar bsahlhof commented on August 17, 2024

I'll review when I'm near my development pc, but the issue was that when
the key of the options were integers (Which converted to the value, not the
label), when the check was made, it would always come back false...
specifically because of these lines:
https://github.com/auraphp/Aura.Html/blob/develop-2/src/Helper/Input/AbstractChecked.php#L68-L81

I have not checked this functionality for quite some time, but assuming the
issue wasn't previously fixed, then the strict === causes this statement to
always be false if integers (or, I believe string numbers) were used within
the array passed in. ( 1 !== '1' )

On Mon, Mar 16, 2015 at 12:12 PM, Paul M. Jones [email protected]
wrote:

Do you mean
https://github.com/auraphp/Aura.Html/blob/develop-2/src/Helper/Input/Radio.php#L51-L59,
perhaps? If that's the case, it's not necessarily wise to assume that an
integer $value should use $label as the value instead, because it might
be that the value is supposed to be an integer.

If that's not the case, let me know.


Reply to this email directly or view it on GitHub
#21 (comment).

from aura.html.

pmjones avatar pmjones commented on August 17, 2024

Ah so! In Select, we solved it with a $strict property that could be turned off and on. I'll try that here too.

from aura.html.

harikt avatar harikt commented on August 17, 2024

@pmjones no tests ;) .

from aura.html.

pmjones avatar pmjones commented on August 17, 2024

Good grief @harikt give it five minutes. ;-)

from aura.html.

harikt avatar harikt commented on August 17, 2024

:) . noticed .

from aura.html.

Related Issues (12)

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.