its_ui_vite 1.0.8 → 1.0.9

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": "its_ui_vite",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "./src/libIndex.js",
5
5
  "module": "./src/libIndex.js",
6
6
  "files": [
@@ -273,6 +273,7 @@ const handleOption: TDebounceEvent = function(option, evt) {
273
273
  setOption(option, evt);
274
274
 
275
275
  if (!isMultiple.value) dispatchEmit()
276
+ setActivePlaceholder()
276
277
  }
277
278
 
278
279
  const setOption: TDebounceEvent = function(option, evt) {
@@ -363,14 +364,15 @@ function setListPosition() {
363
364
 
364
365
  function handleClick(evt: MouseEvent) {
365
366
  const target = (evt.target as HTMLElement);
366
- const classesStr = `.${classes.input},.c-input__custom-icon${isMultiple.value ? ',.c-input__custom-icon,.c-select__list_btn' : ''}`
367
+ const classesStr = `.${classes.input},.c-input__custom-icon${isMultiple.value ? ',.c-input__custom-icon,.c-select__list' : ''}`
367
368
  const currentRoot = target.closest(`.${classes.root}`)
368
369
  const domElements = target.closest(classesStr)
369
370
 
370
371
  const isRoot = currentRoot === root.value
372
+ const isList = domElements === list.value.$el
371
373
  const isToggle = target.closest('.c-input__custom-icon')
372
374
 
373
- if (isRoot && domElements) {
375
+ if ((isRoot || isList) && domElements) {
374
376
  setListPosition()
375
377
  isOpen.value = isToggle ? !isOpen.value : true
376
378
  emit('update:isOpen', isOpen.value)