fix: visually disable/remove interactive elements in non-editable sheets

This commit is contained in:
Johannes Loher 2022-11-03 23:39:49 +01:00
parent a71a388fbf
commit 2023019d3a
6 changed files with 27 additions and 3 deletions

View file

@ -323,6 +323,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options, DS4ActorSheetD
*/
protected onRollCheck(event: JQuery.ClickEvent): void {
event.preventDefault();
event.currentTarget.blur();
const check = event.currentTarget.dataset["check"];
this.actor.rollCheck(check).catch((e) => notifications.error(e, { log: true }));
}