fix: visually disable/remove interactive elements in non-editable sheets
This commit is contained in:
parent
a71a388fbf
commit
2023019d3a
6 changed files with 27 additions and 3 deletions
|
@ -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 }));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue