Skip to content

Conversation

@nielslyngsoe
Copy link
Member

The input should become readonly when locked, but this is only reflected when changes via the button. externally this is not updated. This pr fixes that.

Copilot AI review requested due to automatic review settings November 13, 2025 16:49
@sonarqubecloud
Copy link

Copilot finished reviewing on behalf of nielslyngsoe November 13, 2025 16:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the readonly property was not being updated when the locked property changed externally (outside of the button click handler). The fix ensures that the input's readonly state is synchronized with the locked state regardless of how the locked property is changed.

Key Changes:

  • Added this.readonly = lock; to the locked setter to ensure readonly is updated when locked changes externally
  • Removed redundant this.readonly = assignment from _onLockToggle() method since the setter now handles this update

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-beach-055ecb503-1223.westeurope.azurestaticapps.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants