Magento2: Issue with blank theme search input

Created on 24 Apr 2016  路  9Comments  路  Source: magento/magento2

Steps to reproduce

Using Blank Theme.

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

    Expected result

  4. Search input displays and stays on the screen.

    Actual result

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

Ready for Work bug report

All 9 comments

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

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');
    });
});

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.

@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.

@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.

Internal issue MAGETWO-53263

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

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

Was this page helpful?
0 / 5 - 0 ratings