magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Issue with blank theme search input

Open ghost opened this issue 10 years ago • 9 comments

Steps to reproduce

Using Blank Theme.

  1. Click inside search.
  2. Click to hide search.
  3. Click to show search.

Expected result

  1. Search input displays and stays on the screen.

Actual result

  1. Search input disappears due to input already being active.

ghost avatar Apr 23 '16 22:04 ghost

I can also replicate in the Luma theme (using a mobile).

BenGlassAtlas avatar Apr 25 '16 07:04 BenGlassAtlas

As a quick workaround without editing core files I used this jQuery (with require.js), this stops the previous toggle from firing then we toggle the active class.

require(['jquery'], function($) {
    var searchLabel = $('#search_mini_form .label');

    searchLabel.on('click', function(event) {
        event.preventDefault();
        searchLabel.toggleClass('active');
    });
});

BenGlassAtlas avatar Apr 25 '16 07:04 BenGlassAtlas

Thank you Ben, I thought I was being a bit lame reporting such a small issue... but it really counts - especially on a serious release.

ghost avatar Apr 25 '16 10:04 ghost

Here a small video to see the error https://drive.google.com/file/d/0B3kBFTm6f_Kab09EemZRZmg1X0U/view?usp=sharing

daim2k5 avatar Apr 25 '16 12:04 daim2k5

@daim2k5 That seems a bit different to the issue I'm having, here is a gif of the problem on Luma mobile. When I click on the search icon the search bar opens then immediately closes, this is on a demo store using the Luma theme (no customisations). I can also replicate on a local environment which uses a custom theme and Luma as a parent.

luma

@xAvarice Which is the issue you're having? If mine is different I will create a new ticket for it.

BenGlassAtlas avatar Apr 25 '16 14:04 BenGlassAtlas

@BenSpace48 I'm having that exact same issue as you. Thank you for the gif. I don't see any problem at all with Daim's video - I figure compared to this issue I don't have to look closely to compare.

ghost avatar Apr 25 '16 14:04 ghost

Internal issue MAGETWO-53263

piotrekkaminski avatar May 23 '16 05:05 piotrekkaminski

@BenSpace48 @xAvarice looks like i had a different bug, thanks for the gif

daim2k5 avatar May 23 '16 06:05 daim2k5

Closing the issue, fix has been delivered to develop branch.

alena-marchenko avatar Jun 07 '16 17:06 alena-marchenko