Only listen to custom components that have the name attribute for form submission

This commit is contained in:
Oliver-Akins 2024-04-13 17:09:57 -06:00
parent 8c83d304b7
commit 44eaec2d38

View file

@ -57,8 +57,8 @@ export class GenericActorSheet extends ActorSheet {
default.
*/
html.find(
CONFIG.CACHE.componentListeners.join(`,`)
).on(`change`, this._onChangeInput.bind(this));
CONFIG.CACHE.componentListeners.map(n => `${n}[name]`).join(`,`)
).on(`change`, () => this._onChangeInput.bind(this));
/*
Utility event listeners that apply