Skip to content

Commit 1023036

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #17084: [Backport] [FIX] Remove not used and empty template (by @mageprince) - #17085: [Backport] [FIX] Remove not used variable in template (by @mageprince) - #17086: [Backport] Act better on existing input focus instead of removing it (by @mageprince) Fixed GitHub Issues: - #13988: Mini search field looses focus after its JavaScript is initialized (reported by @krzksz) has been fixed in #17086 by @mageprince in 2.1-develop branch Related commits: 1. 90f884f
2 parents b42f13b + c3c8ab8 commit 1023036

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

app/code/Magento/Search/view/frontend/web/form-mini.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ define([
8989
}, this), 250);
9090
}, this));
9191

92-
this.element.trigger('blur');
92+
if (this.element.get(0) === document.activeElement) {
93+
this.setActiveState(true);
94+
}
9395

9496
this.element.on('focus', this.setActiveState.bind(this, true));
9597
this.element.on('keydown', this._onKeyDown);

app/code/Magento/Tax/view/frontend/templates/checkout/discount.phtml

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/code/Magento/Tax/view/frontend/templates/checkout/tax.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
</tr>
3939

4040
<?php if ($this->helper('Magento\Tax\Helper\Data')->displayFullSummary() && $_value != 0): ?>
41-
<?php $isTop = 1; ?>
4241
<?php foreach ($block->getTotal()->getFullInfo() as $info): ?>
4342
<?php if (isset($info['hidden']) && $info['hidden']) {
4443
continue;
@@ -64,7 +63,6 @@
6463
<?php endif; ?>
6564
</tr>
6665
<?php $isFirst = 0; ?>
67-
<?php $isTop = 0; ?>
6866
<?php endforeach; ?>
6967
<?php endforeach; ?>
7068
<?php endif;?>

0 commit comments

Comments
 (0)