mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
RepeatClick: ignore right button down
This commit is contained in:
@@ -13,7 +13,8 @@ export default {
|
||||
interval = null;
|
||||
};
|
||||
|
||||
on(el, 'mousedown', () => {
|
||||
on(el, 'mousedown', (e) => {
|
||||
if (e.button !== 0) return;
|
||||
startTime = new Date();
|
||||
once(document, 'mouseup', clear);
|
||||
clearInterval(interval);
|
||||
|
||||
Reference in New Issue
Block a user