-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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(VSlider): add missing prepend and append icon click events #16079
fix(VSlider): add missing prepend and append icon click events #16079
Conversation
There were props for adding click events for the append and prepend icons in the v slider but they weren't used in the component which led to not being able to have events for the icons. I also added unit tests that check if the icons are clicked and if they have emitted an event. fix vuetifyjs#16071
50e76f2
to
1057e25
Compare
Ran lint:fix in order to fix linting problems that the CI was having
@KaelWD we're filtering out event props here
|
e6199a3
to
c4ab550
Compare
I think because VTextField does some other stuff first then waits a tick before re-emitting clear: vuetify/packages/vuetify/src/components/VTextField/VTextField.tsx Lines 126 to 136 in f6ee9a3
If clear was part of fieldProps it'd happen twice We could probably do something similar to line 145 though and just const [{ 'onClick:clear': _, ...fieldProps }] = filterFieldProps(props)
|
Is that the advised direction @KaelWD? To add exceptions for those events? |
VField is emitting "prependInner" rather than "prepend". So clear event shouldn't bother. Regarding this ticket, we should focus on Removing I think it should be ok. Because VInput props only has two event emits:
|
18ab9a4
to
aa22a14
Compare
Description
Motivation and Context
There were props for adding click events for the append and prepend icons in the v slider but they weren't used in the component which led to not being able to have events for the icons, which would fix #16071
How Has This Been Tested?
I created a unit test using cypress which adds a slider with 2 icons and putting events on them, after that I used cypress spies to check if the button events worked when both icons were clicked.
Markup:
Types of changes
Checklist:
master
for bug fixes and documentation updates,dev
for new features and backwards compatible changes andnext
for non-backwards compatible changes).