Comments (10)
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.
@notwaldorf Try this one, put a
into the input, then try b
, then c
then d
http://output.jsbin.com/huwesenilo/
from paper-checkbox.
from paper-checkbox.
Interesting, but if i type 'bb' I see what you mean. Hmm.
from paper-checkbox.
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.
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.
(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.
Yeah, it returns null
I think, or is just not defined, which probably doesn't kick off the computed property...
from paper-checkbox.
@notwaldorf Should this be reopened or is it not a bug?
from paper-checkbox.
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)
- Paper checkbox checked color adds extraneous parenthesis to checkboxContainer background and border colors HOT 4
- Hyperlinks within the label don't work when the checkbox is disabled. HOT 1
- Default value for "checked" is undefined, this causes a bug HOT 2
- Ripple is misplaced on first render when using ShadyDOM
- Turn off toggles and data-bind checked attribute
- aria-checked can be toggled when element is disabled (a11y issue)
- Ripple is incorrectly sized when `--paper-checkbox-size` is specified in units other than 'px'.
- Binding checkbox with Angular 2.0 Form
- Using calc() on --paper-checkbox-size throws error and no ink effect
- [Feature request] Add a variable for border-radius of checkbox
- Edge 16: Checkbox misaligned HOT 6
- Add `--paper-checkbox-border-width` CSS property
- paper-ckeckbox and other elements 3.0.0-pre.3 error
- Closure compiler error, parseFloat called with 2 arguments. HOT 2
- paper-checkbox causes polymer-starter-kit new view to crash on import HOT 2
- `.eslint.rc` is unused?
- Version number inconsistency
- paper-checkbox ignores `backface-visibility: hidden` CSS property
- Setting "checked" attribute in shadow dom is removed on upgrade
- paper-checkbox checked attribute accessibility issue HOT 1
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 paper-checkbox.