@mythpe/quasar-ui-qui 0.3.83 → 0.3.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.3.83",
3
+ "version": "0.3.85",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -68,7 +68,12 @@ const isGuest = computed(() => {
68
68
  const v = toValue(props.guest)
69
69
  return v !== undefined && v !== null && v !== !1
70
70
  })
71
- const getSearchLength = computed(() => parseInt(props.searchLength?.toString() || '0') || 3)
71
+ const getSearchLength = computed(() => {
72
+ if (props.searchLength === undefined || props.searchLength === null) {
73
+ return 3
74
+ }
75
+ return parseInt(props.searchLength?.toString() || '0')
76
+ })
72
77
  const prepare = async (fromWatch = !1, merge = {}) => {
73
78
  if (!props.service || loading.value) {
74
79
  return
@@ -129,7 +134,7 @@ const listeners = {
129
134
  if (!val && fieldValue.value) {
130
135
  return
131
136
  }
132
- if (val?.toString?.()?.length < getSearchLength.value) {
137
+ if (getSearchLength.value > 0 && val?.toString?.()?.length < getSearchLength.value) {
133
138
  return
134
139
  }
135
140
  prepare()