Skip to content

Commit

Permalink
[5.x] Prevent updating time fieldtype value if it hasn't changed (#10409
Browse files Browse the repository at this point in the history
)
  • Loading branch information
duncanmcclean authored Jul 16, 2024
1 parent be7728e commit a508bd2
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 a508bd2

Please sign in to comment.