Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit f40759f

Browse files
authored
fix(text-field): Should compare using coerced value (#1231)
1 parent f29cb70 commit f40759f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/textfield/text-field.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export class MdcTextField implements AfterContentInit, OnDestroy, ControlValueAc
435435
setBox(box: boolean): void {
436436
this._box = toBoolean(box);
437437

438-
if (this.outline && box) {
438+
if (this.outline && this.box) {
439439
this.outline = false;
440440
}
441441
this._box ? this._ripple.attachTo(this._getHostElement(), false, this._getInputElement()) :
@@ -448,7 +448,7 @@ export class MdcTextField implements AfterContentInit, OnDestroy, ControlValueAc
448448
setOutline(outline: boolean): void {
449449
this._outline = toBoolean(outline);
450450

451-
if (outline && this.box) {
451+
if (this.outline && this.box) {
452452
this.box = false;
453453
}
454454

0 commit comments

Comments
 (0)