Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Unable to activate search form on phone #3770

Merged
merged 1 commit into from
Aug 22, 2016

Conversation

vovayatsyuk
Copy link
Member

This commit fixes the bug, when user was not able to activate search
form on mobile device after two sequential clicks on search icon (label).

Bug description:

  1. First click (Field should show up): focus event is triggered and form is shown.
  2. Second click (Field should show off): blur and focus events are triggered
    2.1. Blur event set the timeout to hide the field.
    2.2. Focus event adds the active class to the field.
    2.3. Timeout function is called, active class name is removed and field becomes hidden.
    (Field is still in focus state)
  3. Third click (Field should show up): blur and focus events are triggered again,
    and field will not show up.

    3.1 Blur event set the timeout to hide the field.
    ...

Proposed patch adds additional logic into 2.1 and 3.1:
Blur event will set the timeout to hide the field if the field already has active class name

This commit fixes the bug, when user was not able to activate search 
form on mobile device after two sequential clicks on search icon (label).

Bug description:

1. First click (Field should show up): `focus` event is triggered and form is shown.
2. Second click (Field should show off): `blur` and `focus` events are triggered
 2.1. Blur event set the timeout to hide the field.
 2.2. Focus event adds the `active` class to the field.
 2.3. Timeout function is called and field becomes hidden.
 2.4. Field is still has `focus` state, because user clicked on label again.
3. **Third click (Field should show up): `blur` and `focus` events are triggered again,
    and field will not show up.**

Proposed patch adds additional logic into 2.1:
**Blur event will set the timeout to hide the field if the field already has `active` class name**
@vasiliyseleznev vasiliyseleznev removed the MX label Aug 3, 2016
@paliarush paliarush self-assigned this Aug 4, 2016
@vkorotun vkorotun added the bugfix label Aug 5, 2016
@sshrewz sshrewz added the linked label Aug 9, 2016
@vkorotun vkorotun added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development and removed linked labels Aug 22, 2016
@mmansoor-magento mmansoor-magento merged commit 81fafc0 into magento:develop Aug 22, 2016
mmansoor-magento pushed a commit that referenced this pull request Aug 22, 2016
Fixes for:
    MAGETWO-56868 Cannot save a product with images for the second time
    MAGETWO-54355 [Github][PR] Bugfix: Unable to activate search form on phone #3770
    MAGETWO-54580 [Github][PR] added partial fix for issue #2617. #3688
    MAGETWO-53808 [Github][PR] Fixed post var name for update attributes #4011
    MAGETWO-55950 Automate Create new Email Template test
    MAGETWO-56197 Write functional test for Account sharing settings availability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Component: Search Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: accept
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants