mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-29 04:17:41 +02:00
use element classList to add animations (#1436)
This commit is contained in:
parent
f54ca688d4
commit
3629c2c0d5
@ -820,12 +820,17 @@
|
|||||||
setValueForElement(el);
|
setValueForElement(el);
|
||||||
afterValSetFunc(el);
|
afterValSetFunc(el);
|
||||||
setValueForElementByEvent(el);
|
setValueForElementByEvent(el);
|
||||||
canSeeElementToStyle(el) && (el.className += ' com-bitwarden-browser-animated-fill',
|
|
||||||
|
// START MODIFICATION
|
||||||
|
if (canSeeElementToStyle(el)) {
|
||||||
|
el.classList.add('com-bitwarden-browser-animated-fill');
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
// START MODIFICATION
|
if (el) {
|
||||||
el && el.className && (el.className = el.className.replace(/(\\s)?com-bitwarden-browser-animated-fill/, ''));
|
el.classList.remove('com-bitwarden-browser-animated-fill');
|
||||||
// END MODIFICATION
|
}
|
||||||
}, styleTimeout));
|
}, styleTimeout);
|
||||||
|
}
|
||||||
|
// END MODIFICATION
|
||||||
}
|
}
|
||||||
|
|
||||||
document.elementForOPID = getElementByOpId;
|
document.elementForOPID = getElementByOpId;
|
||||||
|
Loading…
Reference in New Issue
Block a user