-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(site): Small adjustments color picker and add clear button search bar #3851
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
Conversation
| set: (val) => emit('update:modelValue', val) | ||
| }) | ||
| get: () => { | ||
| if (props.modelValue === 'currentColor') { |
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.
How about?
| if (props.modelValue === 'currentColor') { | |
| if (!props.modelValue || props.modelValue === 'currentColor') { |
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 can be annoying if you want to clear the field. But we can make it explicit.
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.
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.
Add check if value is undefined or null
Co-authored-by: Karsa <[email protected]>
… bar (#3851) * Small adjustments * Format code * format code * Remove default value * format code * update yml file * Format code * Update docs/.vitepress/theme/components/base/Input.vue Co-authored-by: Karsa <[email protected]> * Add extra check if null or undefined --------- Co-authored-by: Karsa <[email protected]>
Adjustments site