Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit a06afe6

Browse files
committed
feat(buttons): hide nested inputs
- Hide nested input elements Closes #4282
1 parent ef668f6 commit a06afe6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/buttons/buttons.js

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ angular.module('ui.bootstrap.buttons', [])
1818
link: function(scope, element, attrs, ctrls) {
1919
var buttonsCtrl = ctrls[0], ngModelCtrl = ctrls[1];
2020

21+
element.find('input').css({display: 'none'});
22+
2123
//model -> UI
2224
ngModelCtrl.$render = function() {
2325
element.toggleClass(buttonsCtrl.activeClass, angular.equals(ngModelCtrl.$modelValue, scope.$eval(attrs.btnRadio)));
@@ -50,6 +52,8 @@ angular.module('ui.bootstrap.buttons', [])
5052
link: function(scope, element, attrs, ctrls) {
5153
var buttonsCtrl = ctrls[0], ngModelCtrl = ctrls[1];
5254

55+
element.find('input').css({display: 'none'});
56+
5357
function getTrueValue() {
5458
return getCheckboxValue(attrs.btnCheckboxTrue, true);
5559
}

0 commit comments

Comments
 (0)