Просмотр исходного кода

ui-fix: try to hide dropdown after use

andre 2 лет назад
Родитель
Сommit
f3efc5587a

+ 2 - 2
app/UI/Client/Templates/ressource/buttons/spanDropdownButton_components.tpl

@@ -10,7 +10,7 @@
         </button>
         <div class="mg-drop-bg-wrapper" v-show="dropOpen" @click="hideDrop"></div>
         <div v-show="dropOpen"  @click="hideDrop" class="drop lu-drop-element drop-enabled drop-element-attached-top drop-element-attached-left drop-target-attached-bottom drop-target-attached-left drop-open drop-open-transitionend drop-after-open">
-            <div class="drop-content">
+            <div @click="hideDrop" class="drop-content">
                 <div class="lu-dropdown" data-dropdown-menu="">
                     <div class="lu-dropdown__arrow" data-arrow="" style="left: auto; right: 10px;"></div>
                     <ul class="lu-dropdown__menu">
@@ -18,7 +18,7 @@
                             <span class="lu-dropdown__title">{$MGLANG->T('Additional Actions')}</span>
                         </li>
                         {foreach from=$rawObject->getButtons() key=buttonKey item=buttonValue}
-                            <li @click="hideDrop" class="lu-dropdown__item">
+                            <li class="lu-dropdown__item">
                                 {$buttonValue->getHtml()}
                             </li>
                         {/foreach}