Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-52685

Liferay.NavigationInteraction plugin (touch only) unmet dependency

    Details

      Description

      In the module liferay-navigation-interaction-touch (conditionally loaded on use of liferay-navigation-interaction, found in /html/js/liferay/liferay_navigation_interaction_touch.js) it does the following:

      A.Event.defineOutside('touchend');
      

      and listens for:

      var outsideEvents = ['clickoutside', 'touchendoutside'];
      

      that means that this module requires the (standard YUI) module event-outside, but it is not defined as an explicit dependency.

      This means that the module liferay-navigation-interaction-touch works in classic only because there's another module/taglib loading event-outside.

      The easy fix is to modify the required modules of liferay-navigation-interaction-touch as follows:

      { requires: ['event-outside', 'event-tap', 'event-touch', 'liferay-navigation-interaction'] }
      

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            pierpaolo.ramon Pier Paolo Ramon
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 1 week, 5 days ago

                Packages

                Version Package
                7.0.0 M4