@citizenplane/pimp 18.13.2 → 18.13.4

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": "@citizenplane/pimp",
3
- "version": "18.13.2",
3
+ "version": "18.13.4",
4
4
  "scripts": {
5
5
  "dev": "storybook dev -p 8081",
6
6
  "build-storybook": "storybook build --output-dir ./docs",
@@ -116,6 +116,7 @@ interface Emits {
116
116
 
117
117
  interface Props {
118
118
  appendTo?: string | HTMLElement
119
+ disableBlurReset?: boolean
119
120
  disabled?: boolean
120
121
  emptyMessage?: string
121
122
  errorMessage?: string
@@ -144,6 +145,7 @@ const props = withDefaults(defineProps<Props>(), {
144
145
  name: '',
145
146
  placeholder: '',
146
147
  optionLabel: 'name',
148
+ disableBlurReset: false,
147
149
  trackBy: undefined,
148
150
  emptyMessage: 'No results found',
149
151
  errorMessage: '',
@@ -248,6 +250,7 @@ const handleOverlayShown = () => emit('overlayShown')
248
250
  const handleOverlayHidden = () => emit('overlayHidden')
249
251
 
250
252
  const handleBlur = () => {
253
+ if (props.disableBlurReset) return
251
254
  if (props.multiple) {
252
255
  const inputElement = getInputElement()
253
256
  if (inputElement) inputElement.value = ''
@@ -339,7 +342,6 @@ onMounted(() => overrideAlignOverlay())
339
342
  flex-shrink: 0;
340
343
  align-items: center;
341
344
  order: -1;
342
- padding: var(--cp-spacing-xs);
343
345
 
344
346
  &:empty {
345
347
  display: none;