-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Input] Setting .value before render() throws an error #10405
Labels
4 - verified
Issues that have been released and confirmed resolved.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Comments
maxpatiiuk
added
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
0 - new
New issues that need assignment.
needs triage
Planning workflow - pending design/dev review.
labels
Sep 26, 2024
github-actions
bot
added
calcite-components
Issues specific to the @esri/calcite-components package.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
labels
Sep 26, 2024
Side node: this line in the watcher has several issues:
|
jcfranco
added
1 - assigned
Issues that are assigned to a sprint and a team member.
estimate - 3
A day or two of work, likely requires updates to tests.
p - medium
Issue is non core or affecting less that 60% of people using the library
and removed
0 - new
New issues that need assignment.
needs triage
Planning workflow - pending design/dev review.
labels
Sep 30, 2024
Changing the private setInputValue(newInputValue: string): void {
if (this.type === "number" && this.childNumberEl) {
this.childNumberEl.value = newInputValue;
} else if (this.childEl) {
this.childEl.value = newInputValue;
}
} |
geospatialem
modified the milestones:
2024-10-29 - Oct Milestone,
2024-11-19 - 3.0.0 Nov Breaking Change Milestone
Oct 28, 2024
jcfranco
added a commit
that referenced
this issue
Nov 15, 2024
**Related Issue:** #10310, #10481, #10399, #10405, #10491, #10434, #10495, #9260 ## Noteworthy changes * components are now Lit-based * removed `@storybook/test` and `@storybook/addon-interactions` as these were not being actively used * React deps bumped to v18 * Added default `scale` value to: * `action-bar` * `action-group` * `action-menu` * `action-pad` * Path of extras will change to the following: * `/dist/extras/vscode-data.json` ➡️ `/dist/docs/vscode.html-custom-data.json` * backwards-compatible version is preserved to not break Intellisense [described in the doc](https://developers.arcgis.com/calcite-design-system/resources/frameworks/#visual-studio-intellisense) * `/dist/extras/docs-json.json` ➡️ `/dist/docs/docs.json` (internal) * `/dist/extras/translations-json.json` ➡️ `/dist/docs/translations.json` (internal) * `/dist/extras/docs-json.d.ts` ❌ (removed, internal) BREAKING CHANGE: * for a consistent development experience, components now convert `null` to `undefined`, so developers will need to update code with strict null checks * removed the following `@esri/eslint-plugin-calcite-components` rules as they are no longer valid: * `ban-props-on-host` * `enforce-ref-last-prop` * `require-event-emitter-type` --------- Co-authored-by: JC Franco <jfranco@esri.com> Co-authored-by: Ben Elan <no-reply@benelan.dev> Co-authored-by: Calcite Admin <calcite-admin@esri.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
jcfranco
added
the
3 - installed
Issues that have been merged to master branch and are ready for final confirmation.
label
Nov 15, 2024
Installed and assigned for verification. |
jcfranco
removed
the
1 - assigned
Issues that are assigned to a sprint and a team member.
label
Nov 15, 2024
🍡 Verified on |
geospatialem
added
4 - verified
Issues that have been released and confirmed resolved.
and removed
3 - installed
Issues that have been merged to master branch and are ready for final confirmation.
labels
Nov 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
4 - verified
Issues that have been released and confirmed resolved.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
Check existing issues
Actual Behavior
calcite-input has a watcher on
value
property. When watcher triggers, it updates the HTML element:calcite-design-system/packages/calcite-components/src/components/input/input.tsx
Lines 976 to 984 in c99be67
If
.value
property is set after component'sconstructor()
(because Stencil watchers are disabled before that), but beforerender()
(because.childEl
ref is set afterrender()
), the above watcher will fail with this exception:The issue is that while the watcher checks for
this.childEl
being undefined, it only does so when input type is text.This might be an artifact back from when this input only support number and input types?
Expected Behavior
Setting value should not produce an exception
Reproduction Sample
https://codepen.io/maxpatiiuk/pen/ZEgGWod?editors=1010
Reproduction Steps
.value
property or a calcite-input with a type not equal to text and not equal to number after component'sconstructor()
triggered but beforerender()
Reproduction Version
2.13.0
Relevant Info
No response
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Impact
No response
Calcite package
Esri team
N/A
The text was updated successfully, but these errors were encountered: