Skip to content

Commit

Permalink
fix(client/cordova/macos): force rendering of add server button (#1973)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse authored Apr 15, 2024
1 parent 09f0f1f commit f00a94c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/src/www/ui_components/add-server-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Polymer({
color: var(--error-color);
--paper-input-container-input-color: var(--error-color);
}
#add-server-button {
#addServerButton {
background-color: var(--dark-green);
color: #fff;
padding: 0 20px;
Expand Down Expand Up @@ -200,7 +200,7 @@ Polymer({
</div>
<div class="button-container">
<paper-button class="faded" on-tap="_ignoreDetectedServer">[[localize('server-add-ignore')]]</paper-button>
<paper-button id="add-server-button" on-tap="_addDetectedServer">[[localize('server-add')]]</paper-button>
<paper-button id="addServerButton" on-tap="_addDetectedServer">[[localize('server-add')]]</paper-button>
</div>
</div>
</paper-dialog>
Expand Down Expand Up @@ -278,6 +278,9 @@ Polymer({
if (accessKeyInput.validate()) {
this.fire('AddServerConfirmationRequested', {accessKey: this.accessKey});
}

// On MacOS, the button doesn't render until focused. This is likely due to the fact that we're still using a deprecated web view
this.$.addServerButton.focus();
},

_addDetectedServer: function() {
Expand Down

0 comments on commit f00a94c

Please sign in to comment.