From 4eec43596c5828f36877c306e909b91420620ec1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 26 Oct 2024 00:54:48 -0400 Subject: [PATCH 1/2] Fixed an issue where label would not float with empty string Another followup on #1212 --- packages/stencil-library/src/components/dnn-input/dnn-input.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 eba9cf1e..ac462c5c 100644 --- a/packages/stencil-library/src/components/dnn-input/dnn-input.tsx +++ b/packages/stencil-library/src/components/dnn-input/dnn-input.tsx @@ -184,7 +184,7 @@ export class DnnInput { return false; } - if (this.value == 0){ + if (this.value == 0 || this.value !== ""){ return false; } From b566c1c26606594f926c77217f37748540842dd0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 26 Oct 2024 00:57:52 -0400 Subject: [PATCH 2/2] Another correction --- packages/stencil-library/src/components/dnn-input/dnn-input.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ac462c5c..8d34860a 100644 --- a/packages/stencil-library/src/components/dnn-input/dnn-input.tsx +++ b/packages/stencil-library/src/components/dnn-input/dnn-input.tsx @@ -184,7 +184,7 @@ export class DnnInput { return false; } - if (this.value == 0 || this.value !== ""){ + if (this.value === 0 || this.value === "0") { return false; }