Skip to content

Commit

Permalink
Restore blank select option to weapon sheet range dropdown (foundryvt…
Browse files Browse the repository at this point in the history
  • Loading branch information
In3luki authored and CarlosFdez committed May 29, 2024
1 parent 5fbec72 commit 66e8c3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/templates/items/weapon-details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
{{/if}}
</label>
<select name="system.range" id="{{fieldIdPrefix}}range" data-dtype="Number" {{disabled mandatoryMelee}}>
{{#if mandatoryMelee}}
<option value="">{{localize "PF2E.Item.Weapon.NoRangeMelee"}}</option>
{{#if (not mandatoryRanged)}}
{{selectOptions weaponRanges selected=item._source.system.range blank="PF2E.Item.Weapon.NoRangeMelee" localize=true}}
{{else}}
{{selectOptions weaponRanges selected=item._source.system.range}}
{{/if}}
Expand Down

0 comments on commit 66e8c3f

Please sign in to comment.