Skip to content

Commit

Permalink
AIQ-5472: Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atsunechka committed Sep 27, 2024
1 parent 7cb35a1 commit df0d988
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion specs/SelectMulti.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ describe('SelectMulti', () => {

const inputIconBlock = selectMulti.find('.combo-input-icon-block')

expect(inputIconBlock.element.tagName === 'BUTTON').toBeTruthy()
expect(inputIconBlock.classes('not-clickable')).toBe(false)
})
})
Expand Down
4 changes: 2 additions & 2 deletions src/SelectMulti.vue
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
</div>
</slot>
</div>
<component :is="iconIsClickable ? 'button' : 'div'" @click="iconIsClickable ? updateMenuState(iconIsClickable) : false" class="combo-input-icon-block" :class="{ 'not-clickable': !iconIsClickable }">
<div @click="iconIsClickable ? updateMenuState(iconIsClickable) : false" class="combo-input-icon-block" :class="{ 'not-clickable': !iconIsClickable }">
<template v-if="!loading">
<slot name="input-icon">
<svg class="combo-plus-icon" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
Expand All @@ -444,7 +444,7 @@
<path d="M10.6353 4.71384C11.3212 7.36481 9.80202 10.0897 7.24202 10.8L7.55253 12C10.7525 11.1121 12.6516 7.70601 11.7941 4.39231L10.6353 4.71384Z" fill="currentColor"/>
</svg>
</template>
</component>
</div>
</div>
</div>
</template>
2 changes: 1 addition & 1 deletion src/styles/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ $spacer: 1.875rem; // 30px
top: 50%;
transform: translate(0, -50%);
right: math.div($spacer, 1.5);
border: none;
cursor: pointer;

&.not-clickable {
pointer-events: none;
Expand Down

0 comments on commit df0d988

Please sign in to comment.