Add a meh placeholder to the select

This commit is contained in:
Oliver-Akins 2025-04-21 22:29:14 -06:00
parent 87ce956368
commit 65856b650c
2 changed files with 8 additions and 0 deletions

View file

@ -43,6 +43,13 @@ export class StatsViewer extends HandlebarsApplicationMixin(ApplicationV2) {
async _onRender(context, options) {
await super._onRender(context, options);
/*
Removes the Foundry empty placeholder and allows my custom placeholder.
See: https://github.com/foundryvtt/foundryvtt/issues/12572
*/
this.element.querySelector(`multi-select option:first-child:empty`)
?.remove();
const elements = this.element
.querySelectorAll(`[data-bind]`);
for (const input of elements) {