mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: Manually trigger a change-event when autofill is used in webkit-browsers #12133
This commit is contained in:
11
public/sass/utils/_hacks.scss
Normal file
11
public/sass/utils/_hacks.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
// <3: https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
|
||||
// sass-lint:disable no-empty-rulesets
|
||||
@keyframes onAutoFillStart { from {/**/} to {/**/}}
|
||||
@keyframes onAutoFillCancel { from {/**/} to {/**/}}
|
||||
input:-webkit-autofill {
|
||||
animation-name: onAutoFillStart;
|
||||
transition: transform 1ms;
|
||||
}
|
||||
input:not(:-webkit-autofill) {
|
||||
animation-name: onAutoFillCancel;
|
||||
}
|
||||
Reference in New Issue
Block a user