mirror of
https://github.com/youzan/vant.git
synced 2025-10-14 15:10:36 +00:00
fix(touch-emulator): 添加 Element.prototype.matches 的polyfill (#8992)
This commit is contained in:
@@ -51,6 +51,12 @@
|
||||
};
|
||||
}
|
||||
|
||||
if (!Element.prototype.matches) {
|
||||
Element.prototype.matches =
|
||||
Element.prototype.msMatchesSelector ||
|
||||
Element.prototype.webkitMatchesSelector;
|
||||
}
|
||||
|
||||
if (!Element.prototype.closest) {
|
||||
Element.prototype.closest = function (s) {
|
||||
var el = this;
|
||||
|
Reference in New Issue
Block a user