Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(checkbox): fixes issue where double-clicking checkboxes causes te…
Browse files Browse the repository at this point in the history
…xt selection

Closes #588
  • Loading branch information
robertmesserle authored and ajoslin committed Dec 2, 2014
1 parent aa690e8 commit 5d2e7d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/checkbox/_checkbox.scss
Expand Up @@ -7,6 +7,7 @@ md-checkbox {
white-space: nowrap;
cursor: pointer;
outline: none;
user-select: none;

.md-container {
position: relative;
Expand Down Expand Up @@ -85,5 +86,6 @@ md-checkbox {
vertical-align: middle;
white-space: normal;
pointer-events: none;
user-select: text;
}
}
4 changes: 2 additions & 2 deletions src/components/checkbox/demoBasicUsage/index.html
Expand Up @@ -9,15 +9,15 @@
Checkbox 2: {{ data.cb2 }}
</md-checkbox>

<md-checkbox ng-disabled="true" aria-label="Disabled checkbox">
<md-checkbox ng-disabled="true" aria-label="Disabled checkbox" ng-model="data.cb3">
Checkbox (Disabled)
</md-checkbox>

<md-checkbox ng-disabled="true" aria-label="Disabled checked checkbox" ng-model="data.cb4" ng-init="data.cb4=true">
Checkbox (Disabled, Checked)
</md-checkbox>

<md-checkbox md-no-ink aria-label="Checkbox No Ink">
<md-checkbox md-no-ink aria-label="Checkbox No Ink" ng-model="data.cb5">
Checkbox (No Ink)
</md-checkbox>

Expand Down
3 changes: 3 additions & 0 deletions src/components/checkbox/demoBasicUsage/script.js
Expand Up @@ -6,5 +6,8 @@ angular.module('checkboxDemo1', ['ngMaterial'])
$scope.data = {};
$scope.data.cb1 = true;
$scope.data.cb2 = false;
$scope.data.cb3 = false;
$scope.data.cb4 = false;
$scope.data.cb5 = false;

});

0 comments on commit 5d2e7d4

Please sign in to comment.