Skip to content

Commit

Permalink
Fix bug with number radio values
Browse files Browse the repository at this point in the history
  • Loading branch information
romanmatyus committed Nov 15, 2016
1 parent 475e252 commit 9a6c908
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "happy",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/paveljanda/happy",
"authors": [
"Pavel Janda <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion dist/happy.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Happy = (function() {
if (input.checked) {
name = input.getAttribute('name');
value = input.getAttribute('value');
selector = '.happy-radio[data-name="' + name + '"][data-value=' + value + ']';
selector = '.happy-radio[data-name="' + name + '"][data-value="' + value + '"]';
happy_radio = document.querySelector(selector);
if (happy_radio) {
return happy_radio.classList.add('active');
Expand Down
2 changes: 1 addition & 1 deletion dist/happy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/coffee/happy.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Happy
if input.checked
name = input.getAttribute('name')
value = input.getAttribute('value')
selector = '.happy-radio[data-name="'+name+'"][data-value='+value+']'
selector = '.happy-radio[data-name="'+name+'"][data-value="'+value+'"]'

happy_radio = document.querySelector(selector)

Expand Down

0 comments on commit 9a6c908

Please sign in to comment.