Code Monkey home page Code Monkey logo

Comments (10)

notwaldorf avatar notwaldorf commented on July 28, 2024

I think there's something incorrect in your setup. Here's a JSBin with a bunch of two-way-binded items, and the checkbox selects and deselects correctly: http://jsbin.com/lahoyi/edit?html,output.

Going to close this since I can't repro, but please re-open if you can provide an actual example where this is broken and that we can debug :(

from paper-checkbox.

bvhme avatar bvhme commented on July 28, 2024

@notwaldorf Try this one, put a into the input, then try b, then c then d http://output.jsbin.com/huwesenilo/

from paper-checkbox.

notwaldorf avatar notwaldorf commented on July 28, 2024

It looks ok?
2016-02-03 15_42_42

from paper-checkbox.

notwaldorf avatar notwaldorf commented on July 28, 2024

Interesting, but if i type 'bb' I see what you mean. Hmm.

from paper-checkbox.

bvhme avatar bvhme commented on July 28, 2024

It's the only element that seems to do this, and I've run into it in multiple projects, all related to the firebase objects though being hotswapped out

from paper-checkbox.

notwaldorf avatar notwaldorf commented on July 28, 2024

When I type bb, _computeCheckboxClass: function(checked, invalid) isn't called, which means that checked doesn't actually change. What does object.checked3 actually return? Is it undefined by any chance?

from paper-checkbox.

notwaldorf avatar notwaldorf commented on July 28, 2024

(as in: when I'm debugging, it seems that when I type bb in your demo, checked is set to undefined, which makes sense why the _computeCheckboxClass method isn't called).

This doesn't happen for toggle or radio button because the way the change their css is different.

from paper-checkbox.

bvhme avatar bvhme commented on July 28, 2024

Yeah, it returns null I think, or is just not defined, which probably doesn't kick off the computed property...

from paper-checkbox.

bvhme avatar bvhme commented on July 28, 2024

@notwaldorf Should this be reopened or is it not a bug?

from paper-checkbox.

notwaldorf avatar notwaldorf commented on July 28, 2024

I don't think it's really a bug, since it looks like you're using the attribute incorrectly (setting checked='undefined' is not correct).

But I do agree that maybe we should, for consistency, style in css using attributes vs. using a computed class, which would at least make the element consistent with the radio-button, for example.

I'll re-open and retitle

from paper-checkbox.

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.