-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix: Relative input-widths use container's size #5016
Conversation
Thanks for the PR! 🎉 We've deployed an automatic preview for this PR - you can see your changes here:
Note The build needs to finish before your changes are deployed. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
components/inputs/input-number.js
Outdated
@@ -178,6 +179,7 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi | |||
* @ignore | |||
*/ | |||
valueTrailingZeroes: { type: String, attribute: 'value-trailing-zeroes' }, | |||
_afterSlotWidth: { type: Number }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consumers don't need to set this but we do want changes to it to trigger a render, so it's a good use case for a reactive state property. The others here (_hintType
, _formattedValue
) should be the same but this code was written before state properties were a thing.
_afterSlotWidth: { type: Number }, | |
_afterSlotWidth: { state: true }, |
🎉 This PR is included in version 3.45.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
JIRA