Skip to content

Commit

Permalink
Fixes conversion button being display for hidden amount input (stock …
Browse files Browse the repository at this point in the history
…orders)
  • Loading branch information
lentschi committed Nov 2, 2024
1 parent 1f88fa8 commit 2dbf97a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/unit-conversion-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
this.opener$ = $('<button class="conversion-popover-opener btn btn-ordering"><i class="icon-retweet"></i></button>');
this.opener$.attr('title', this.popoverTemplate.dataset.title);
this.field$.after(this.opener$);
if (this.field$.css('display') === 'none') {
this.opener$.hide();
}

if (this.disabled) {
this.opener$.attr('disabled', 'disabled');
Expand Down

0 comments on commit 2dbf97a

Please sign in to comment.