@@ -130,6 +130,7 @@ export default {
computed: {
...mapState([
'themeName',
+ 'keyboardType'
]),
list({searchKey, searchResults}) {
@@ -221,16 +222,31 @@ export default {
this.$store.state.fileShakeId = item.id
setTimeout(() => {
this.$store.state.fileShakeId = 0
- }, 1000)
+ }, 600)
this.onHide()
break;
}
},
+ onTouchstart() {
+ if (this.keyboardType === "show") {
+ $A.eeuiAppKeyboardHide();
+ }
+ },
+
onShow() {
this.showModal = true
this.$nextTick(() => {
- this.$refs.searchKey?.focus()
+ const $el = this.$refs.searchKey?.$refs?.input;
+ if ($el) {
+ $el.style.caretColor = 'transparent';
+ $el.focus()
+ const len = $el.value.length;
+ $el.setSelectionRange(len, len);
+ setTimeout(() => {
+ $el.style.caretColor = null
+ }, 300)
+ }
})
},
diff --git a/resources/assets/sass/components/search-box.scss b/resources/assets/sass/components/search-box.scss
index 8280a3bfb..d72a6c1d8 100755
--- a/resources/assets/sass/components/search-box.scss
+++ b/resources/assets/sass/components/search-box.scss
@@ -129,6 +129,7 @@
.search-list {
overflow: auto;
max-height: calc(100vh - 255px);
+ overscroll-behavior: contain;
@media (max-height: 900px) {
max-height: calc(100vh - 125px);