Add a meh placeholder to the select
This commit is contained in:
parent
87ce956368
commit
65856b650c
2 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
<multi-select
|
||||
data-bind="_selectedUsers"
|
||||
>
|
||||
<option value="">Add a User</option>
|
||||
{{ st-options selectedUsers users }}
|
||||
</multi-select>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue