Skip to content

Commit

Permalink
[4.x] Remove clear button of readonly date field (#9993)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJunod committed May 3, 2024
1 parent e65fd2d commit f7575f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/date/RangePopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@focus="$emit('focus', $event.target)"
@blur="$emit('blur')"
/>
<button @click="clear" type="button" title="Clear" aria-label="Clear" class="cursor-pointer px-2 hover:text-blue-500">
<button v-if="!isReadOnly" @click="clear" type="button" title="Clear" aria-label="Clear" class="cursor-pointer px-2 hover:text-blue-500">
<span>×</span>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/date/SinglePopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@focus="$emit('focus', $event.target)"
@blur="$emit('blur')"
/>
<button @click="clear" type="button" title="Clear" aria-label="Clear" class="cursor-pointer px-2 hover:text-blue-500">
<button v-if="!isReadOnly" @click="clear" type="button" title="Clear" aria-label="Clear" class="cursor-pointer px-2 hover:text-blue-500">
<span>×</span>
</button>
</div>
Expand Down

0 comments on commit f7575f6

Please sign in to comment.