File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
projects/igniteui-angular/src/lib/directives/button Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ export class IgxButtonDirective extends DisplayDensityBase {
238238 */
239239 @Input ( )
240240 @HostBinding ( 'class.igx-button--disabled' )
241- public get disabled ( ) {
241+ public get disabled ( ) : boolean {
242242 return this . _disabled ;
243243 }
244244
@@ -251,7 +251,7 @@ export class IgxButtonDirective extends DisplayDensityBase {
251251 * ```
252252 */
253253 public set disabled ( val : boolean ) {
254- this . _disabled = ! ! val ;
254+ this . _disabled = ( val as any === '' ) || val ;
255255 }
256256
257257 /**
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ <h4 class="sample-title">Flat Buttons</h4>
1212 < input type ="button " igxButton ="flat " igxRipple ="white " value ="Input " />
1313 </ div >
1414 < div class ="button-sample ">
15- < button igxButton ="flat " [ disabled] =" true " > Flat </ button >
15+ < button igxButton ="flat " disabled > native disabled </ button >
1616 </ div >
1717 < div class ="button-sample red-sox-button ">
1818 < button igxButton ="flat " [disabled] ="true "> Red Sox</ button >
You can’t perform that action at this time.
0 commit comments