0

当试图通过多选元素的选择列表滚动时,整个选择列表消失了,所以我无法滚动选择列表。

<c:strike_multiSelectPicklist label="Responsible for" value="{!v.contact.Process_Responsibility__c}" class="responsibleFor">
    <aura:iteration items="{!v.processResponsibilityOptions}" var="option">
        <c:strike_option label="{!option}" value="{!option}" />
    </aura:iteration>
</c:strike_multiSelectPicklist>

这是我正在使用的 Strike Multiselect 实现:https ://gist.github.com/JitendraZaa/6b82ee00c45a4b1b66093966c5e6583b

4

1 回答 1

0

似乎我至少出于我的需要以某种方式修复了它:不得不改变它:

 handleOnblur: function(component, event, helper) {
        var isMobile = component.get('v.isMobile');
        var eventSourceId = event.target;
        var mobileInputId = 'strike-multi-select-' + component.get('v.idNumber') + '--mobile';
        var shouldCloseMenu = ((isMobile && eventSourceId == mobileInputId) || !isMobile);

        if (shouldCloseMenu) {
            helper.closeMenu(component);
        }
    },

     handleOnblur: function(component, event, helper) {
        var isMobile = component.get('v.isMobile');
        var eventSourceId = event.target;
        var mobileInputId = 'strike-multi-select-' + component.get('v.idNumber') + '--mobile';
        var shouldCloseMenu = ((isMobile && eventSourceId == mobileInputId) || !isMobile);

        if (false) {
            helper.closeMenu(component);
        }
    },
于 2018-01-04T09:04:32.357 回答