Fixed: Rename function not working properly (#352) #357
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issues
Closes #352
Short Description and Why It's Useful
This PR fixes the rename functionality for Scheduled Incoming Inventory jobs. The issue had two root causes:
Event Timing Conflict: When clicking the Save button, the
ionBlurevent on the input field was firing before the click event, causingcancelRename()to execute and hide the Save button before the click handler could fire.Incorrect Field Reference: The
updateJobmethod was usingjob.jobStatusinstead ofjob.tempExprIdwhen building the API payload, causing the update to fail.Fixes:
@mousedown.preventto the Save button to prevent the input from losing focus when clicking, allowing the click event to fire properlyjob.jobStatustojob.tempExprIdin theupdateJobmethod to use the correct field from the job objectScreenshots of Visual Changes before/after (If There Are Any)
N/A - No visual changes, only functional fixes.
Contribution and Currently Important Rules Acceptance