Skip to content

Commit

Permalink
Prevent updating time fieldtype value if it hasn't changed
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jul 8, 2024
1 parent 0097cf5 commit 3b020f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/js/components/fieldtypes/TimeFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ export default {
parts = parts.map(part => part.padStart(2, '0'));
let newValue = parts.join(':');
this.update(newValue);
if (this.value !== newValue) this.update(newValue);
this.inputValue = newValue;
},
Expand Down

0 comments on commit 3b020f9

Please sign in to comment.