-
Notifications
You must be signed in to change notification settings - Fork 86
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: datepicker not updating on outside value change #441
Conversation
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.
This is amazing @Lalaluka, thank you very much for this fix!
I left a picky comment, if you're so kind.
Thanks again!
Hey @acstll , What I meant was going in the direction of reference. But the longer I think about the less reasonable it is.
Something like that, but for the state value set. Don't mind the comment, It is not that smart as I initially thought 😅 |
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.
Thank you once more!
* chore: implement password protected staging server, tidy up scripts (#434) * feat: badge (#394) * feat: init badge * refactor: everything * feat: init hbs * refactor: inline style to css class mapping * refactor: deleting global variables * refactor: removing border * refactor: deleting old test cases * added storybook * Storybook & Handlebar done * copied and added the index.html from main branch * prettier & lint * fixed errors according to Daniel check, after merge request 1 * format and lint * changes commited according to Daniels check from first MR * applied change according to Daniel, from merge request 2. * design tokens added * Font-Family fixed * added design token for font-family * Edited storybook - Font Co-authored-by: marvinLaubenstein <[email protected]> * ci(bernerslee): remove s3 pipeline * Sketch/readonly input state (#373) * feat(sketch): add readonly states to text-fields * feat(sketch): add readonly states for textarea * feat(textarea): add readonly styles * refactor(sketch): add readonly to smybol name state resolver * chore(sketch): update sketch symbol DB * feat: implement scaleBeforeClose event in Modal (#430) * Update includes and symbol names (#372) * chore: update static sketch symbols * chore: update color swatches and missing readonly state * refactor: change symbol hirarchy for textarea / text-field * refactor: update readonly assignments * fix(button): add icon scaling and resiziable layout of slot elements * fix(dropdown/sketch): improve rendering for select element * chore: autoformat files * fix: datepicker not updating on outside value change (#441) * refactor(rating-stars): rework with input range approach also make the whole thing more modular with parts * feat(rating-stars): add half star rating * feat(rating-stars): use correct aria value and add better half visuals * refactor: add size, editable label; css * feat: only first star can clear all stars * refactor: prop renaming; remove watcher; * test: writing tests * refactor: renaming value to rating * refactor: stories * feat: implement onTouchEnd * feat(rating-stars): add readonly state and a11y features * feat(rating-stars): simplify revert logic / handle minRating input * feat: add prop readonly * feat: edit PR requests * feat: firstStarSelected with a default value of false * feat: input gets focus onClick * feat(rating-stars): add sketch generation and adjust input handling * fix: revert handmade sketch includes * test: update snapshots Co-authored-by: Kutlovcidenis <[email protected]> Co-authored-by: marvinLaubenstein <[email protected]> Co-authored-by: Daniel Beck <[email protected]> Co-authored-by: Stefan Kopco <[email protected]> Co-authored-by: Calvin Schröder <[email protected]> Co-authored-by: Christian Pajung <[email protected]>
Hi 🧑💻
This is a simple fix for: #440
Added a watcher to the Value for outside changes of
value
.Since the
hasValue
State doesn't seem to have reactivity on its own.I'm not absolutely keen if StencilJS has some way to make States reactive directly, if there is a possibility to handle it directly in the State that might be nicer. But I couldn't find such functionality.
Can be tested like this:
This also enables Stuff like this:
Let me know what you think :)