@eturnity/eturnity_reusable_components 6.43.9 → 6.44.1

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": "@eturnity/eturnity_reusable_components",
3
- "version": "6.43.9",
3
+ "version": "6.44.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -18,7 +18,7 @@
18
18
  "vue-styled-components": "1.6.0",
19
19
  "vue2-datepicker": "3.11.1",
20
20
  "vuedraggable": "2.24.3",
21
- "core-js": "^3.31.1"
21
+ "core-js": "3.31.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@storybook/addon-actions": "6.2.8",
@@ -205,11 +205,17 @@ const selectButton = styled('div', selectButtonAttrs)`
205
205
  padding: ${(props) => (props.isSearchBarVisible ? '0' : '0px 0px 0 15px')};
206
206
  text-align: left;
207
207
  border-radius: 4px;
208
- min-height: ${(props) => props.selectMinHeight};
208
+ min-height: ${(props) =>
209
+ props.selectHeight
210
+ ? props.selectHeight
211
+ : props.selectMinHeight
212
+ ? props.selectMinHeight
213
+ : props.height
214
+ ? props.height
215
+ : '36px'};
209
216
  display: flex;
210
217
  align-items: center;
211
218
  max-height: ${(props) => props.selectHeight};
212
- ${(props) => (props.height ? `height: ${props.height}` : '')};
213
219
  ${({ showBorder, theme, hasError }) =>
214
220
  showBorder &&
215
221
  `
@@ -510,8 +510,13 @@ export default {
510
510
  }
511
511
  },
512
512
  methods: {
513
- toggleOpen() {
514
- if (this.disabled) {
513
+ toggleOpen(event) {
514
+ if (
515
+ this.isDisabled ||
516
+ (event &&
517
+ !(event.target === this.$el) &&
518
+ !this.$el.contains(event.target))
519
+ ) {
515
520
  return
516
521
  }
517
522
  this.wasClicked = false