Skip to content

Commit

Permalink
refactor: apply code review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Dec 27, 2024
1 parent b0f72d7 commit e72ea1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/select/src/vaadin-select-base-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,11 @@ export const SelectBaseMixin = (superClass) =>

/** @private */
_openedChanged(opened, overlayElement) {
if (opened) {
if (!overlayElement) {
return;
}
if (!overlayElement) {
return;
}

if (opened) {
if (this.disabled || this.readonly) {
// Disallow programmatic opening when disabled or readonly
this.opened = false;
Expand Down

0 comments on commit e72ea1c

Please sign in to comment.