From d29f75b84fccd06917fb8e2c2ee70e9d76f868cd Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 11 四月 2024 20:15:54 +0800
Subject: [PATCH] 123

---
 force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
index dd18724..d790033 100644
--- a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
+++ b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
@@ -4,10 +4,10 @@
  * @Author: chen jing wu
  * @Date: 2023-05-25 13:59:44
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-30 10:21:50
+ * @LastEditTime: 2023-10-24 14:48:59
 -->
 <template>
-    <div>
+    <div data-id="myInput">
         <div class="slds-form-element">
            <div class="slds-form-element__control">
               <div class="slds-combobox_container">
@@ -15,14 +15,18 @@
                     <div class="slds-combobox__form-element slds-input-has-icon slds-input-has-icon_right" role="none">
                        <template if:false={recordselected}>
                           <input class="slds-input slds-combobox__input" id="combobox-id-1" aria-autocomplete="list" aria-controls="listbox-id-1"
-                             role="textbox" type="text" placeholder="Search..."  onkeyup={onKeyChange} value={selectedValue}/ disabled={disabled}>
+                             role="textbox" type="text" placeholder="Search..."   oninput={onKeyChange} value={selectedValue}/ disabled={disabled} onclick={onKeyChange} onblur={clear}>
                        </template>
                        <template if:true={recordselected}>
                           <span class="slds-pill slds-pill_link fullWidth slds-input slds-combobox__input"> 
-                             <a href="javascript:void(0);" 
-                                class="slds-pill__action slds-p-left_x-small" title={selectedValue}>
-                                <lightning-icon icon-name={iconname} size="x-small"></lightning-icon>
-                                <span class="slds-pill__label slds-p-left_x-small">{selectedValue}</span>
+                           
+                             <a href="javascript:void(0);"
+                                class="slds-pill__action slds-p-left_x-small" title={selectedValue} style="height: 32px;">
+                                <div style="width: 80%;">
+                                 <lightning-icon icon-name={iconname} size="x-small"></lightning-icon>
+                                <span class="slds-pill__label slds-p-left_x-small" style="display: inline-flex;max-width:185px">{selectedValue}</span>
+                                </div>
+                                
                              </a>
                              <button onclick={clearSelection}
                              class="slds-button slds-button_icon slds-button_icon slds-pill__remove" 
@@ -35,8 +39,8 @@
                        </template>
                     </div>
                     <template if:true={recordsList}>
-                       <div class="slds-combobox_container">
-                          <div id="listbox-id-1" class="slds-dropdown slds-dropdown_fluid" role="listbox">
+                       <div onmousedown={dontClose} class="slds-combobox_container">
+                          <div id="listbox-id-1" class="slds-dropdown slds-dropdown_fluid slds-dropdown_autocomplete" role="listbox" style=" overflow: auto;">
                              <ul class="slds-listbox slds-listbox_vertical" role="presentation">
                                 <template for:each={recordsList} for:item="item">
                                    <li key={item.Id} role="presentation" class="slds-listbox__item">

--
Gitblit v1.9.1