From a2600bd1f14efbe87979e2c32e54e8fbdeda0714 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 25 Oct 2024 19:25:55 -0400 Subject: [PATCH] Fixed an issue that made dnn-input label cover 0 Closes #1201 --- .../stencil-library/src/components/dnn-input/dnn-input.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/stencil-library/src/components/dnn-input/dnn-input.tsx b/packages/stencil-library/src/components/dnn-input/dnn-input.tsx index 4068c6343..74a702527 100644 --- a/packages/stencil-library/src/components/dnn-input/dnn-input.tsx +++ b/packages/stencil-library/src/components/dnn-input/dnn-input.tsx @@ -171,6 +171,10 @@ export class DnnInput { if (this.type == "date" || this.type == "datetime-local" || this.type == "time") { return false; } + + if (this.type === "number" && this.value === 0){ + return false; + } return true; }