Skip to content

Commit

Permalink
fix: Get rid of deprecation warning on settings submenus
Browse files Browse the repository at this point in the history
Switch to new handlebars helper selectOptions as foundry has deprecated the
select helper in V12.  This one is simpler too.
  • Loading branch information
xyzzy42 authored and xdy committed Oct 13, 2024
1 parent d417943 commit 4e91e36
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions static/templates/menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
<div class="form-fields">
{{#if setting.isSelect}}
<select name="{{setting.key}}">
{{#select setting.value}}
{{#each setting.choices as |label value|}}
<option value="{{value}}">{{localize label}}</option>
{{/each}}
{{/select}}
{{selectOptions setting.choices selected=setting.value}}
</select>
{{else if setting.isCheckbox}}
<input type="checkbox" name="{{setting.key}}" {{checked setting.value}} />
Expand Down

0 comments on commit 4e91e36

Please sign in to comment.