Skip to content

Commit 8a1d6f8

Browse files
erashu212valorkin
authored andcommitted
fix(dropdown): prop disabled renamed to isDisabled (#615)
BREAKING CHANGE: * dropdown property `disabled` renamed to `isDisabled`
1 parent 75364a6 commit 8a1d6f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/dropdown/dropdown-toggle.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const MouseEvent = (global as any).MouseEvent as MouseEvent;
1111
@Directive({selector: '[dropdownToggle]'})
1212
export class DropdownToggleDirective implements OnInit {
1313
@HostBinding('class.disabled')
14-
@Input() public disabled:boolean = false;
14+
@Input() public isDisabled:boolean = false;
1515

1616
@HostBinding('class.dropdown-toggle')
1717
@HostBinding('attr.aria-haspopup')
@@ -37,7 +37,7 @@ export class DropdownToggleDirective implements OnInit {
3737
public toggleDropdown(event:MouseEvent):boolean {
3838
event.stopPropagation();
3939

40-
if (!this.disabled) {
40+
if (!this.isDisabled) {
4141
this.dropdown.toggle();
4242
}
4343
return false;

components/dropdown/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class Dropdown implements OnInit, OnDestroy {
3535
@Directive({ selector: '[dropdownToggle]' })
3636
export class DropdownToggle implements OnInit {
3737
@HostBinding('class.disabled')
38-
@Input() public disabled:boolean = false;
38+
@Input() public isDisabled:boolean = false;
3939

4040
@HostBinding('attr.aria-expanded')
4141
public get isOpen() {}
@@ -60,4 +60,4 @@ export const DROPDOWN_DIRECTIVES: Array<any> = [Dropdown, DropdownMenu, Dropdown
6060
- `onToggle` - fired when `dropdown` toggles, `$event:boolean` equals dropdown `isOpen` state
6161

6262
### Dropdown toggle properties
63-
- `disabled` (`?boolean=false`) - if `true` dropdown toggle will be disabled
63+
- `isDisabled` (`?boolean=false`) - if `true` dropdown toggle will be disabled

0 commit comments

Comments
 (0)