From 23321f7ab2a242c3c4193fd6cece3f1c7c0034ef Mon Sep 17 00:00:00 2001 From: Sean Perkins <13732623+sean-perkins@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:50:47 -0400 Subject: [PATCH] fix(input): debounce is set with binding syntax in angular on load (#29377) Issue number: resolves #29374 --------- ## What is the current behavior? When using Angular binding syntax, the `debounce` value can be set after `connectedCallback`, but before `componentDidLoad`. This results in the internal representation of the `debounce` value to be the default and the watch callback to never fire. ## What is the new behavior? - The callback handler for `debounce` is called on component load, identical to what we do for the same exact reasons for the input `type`. - `debounce` will correctly reflect and apply the developers value when using binding syntax on initial load ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information Dev-build: `8.0.1-dev.11713879639.102f51a0` Forked reproduction with the dev-build is available here: https://github.com/ionic-team/ionic-framework/issues/29374#issuecomment-2072377087 --- core/src/components/input/input.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index 15727fe0e04..5526e21cccf 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -366,6 +366,7 @@ export class Input implements ComponentInterface { * such as [type] in Angular. */ this.onTypeChange(); + this.debounceChanged(); } componentDidRender() {