mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-03 18:28:13 +01:00
[SM-388] Make CL boolean setters more strict (#4241)
* Make CL boolean setters more restrictive * Set default value for setters
This commit is contained in:
parent
7df799f536
commit
b319713e07
@ -8,8 +8,8 @@ import { Component, Input } from "@angular/core";
|
||||
export class DialogComponent {
|
||||
@Input() dialogSize: "small" | "default" | "large" = "default";
|
||||
|
||||
private _disablePadding: boolean;
|
||||
@Input() set disablePadding(value: boolean | string) {
|
||||
private _disablePadding = false;
|
||||
@Input() set disablePadding(value: boolean | "") {
|
||||
this._disablePadding = coerceBooleanProperty(value);
|
||||
}
|
||||
get disablePadding() {
|
||||
|
@ -12,11 +12,11 @@ import { BitFormControlAbstraction } from "./form-control.abstraction";
|
||||
export class FormControlComponent {
|
||||
@Input() label: string;
|
||||
|
||||
private _inline: boolean;
|
||||
private _inline = false;
|
||||
@Input() get inline() {
|
||||
return this._inline;
|
||||
}
|
||||
set inline(value: boolean | string | null) {
|
||||
set inline(value: boolean | "") {
|
||||
this._inline = coerceBooleanProperty(value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user