Skip to content

Commit

Permalink
Revert strict comparison in WidthSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
morhi committed Nov 5, 2024
1 parent 0354bfb commit ed47283
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions resources/js/components/fields/WidthSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
>
<div class="w-full flex">
<div
v-for="width in normalizedWidths"
v-for="width in widths"
:key="width"
@mouseenter.stop="hoveringOver = width"
@click="$emit('input', width)"
:class="[
'field-width-notch',
'notch-' + width,
{ 'filled': selected >= width, 'selected': selected === width }
{ 'filled': selected >= width, 'selected': selected == width }
]"
/>
</div>
Expand All @@ -38,10 +38,6 @@ export default {
},
computed: {
normalizedWidths() {
return this.widths.map(o => Number(o)).filter(o => !isNaN(o));
},
selected() {
if (this.isHovering) {
return this.hoveringOver;
Expand Down

0 comments on commit ed47283

Please sign in to comment.