|
|
|
@ -31,13 +31,13 @@ export default class extends Controller { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
handleInteraction(event) { |
|
|
|
handleInteraction = (event) => { |
|
|
|
const link = event.target.closest("a"); |
|
|
|
const link = event.target.closest("a"); |
|
|
|
if (link && !link.hasAttribute("data-no-progress") && |
|
|
|
if (link && !link.hasAttribute("data-no-progress") && |
|
|
|
!event.ctrlKey && !event.metaKey && !event.shiftKey) { |
|
|
|
!event.ctrlKey && !event.metaKey && !event.shiftKey) { |
|
|
|
this.start(); |
|
|
|
this.start(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
start() { |
|
|
|
start() { |
|
|
|
this.barTarget.style.width = "0"; |
|
|
|
this.barTarget.style.width = "0"; |
|
|
|
|