@itrocks/list 0.23.0 → 0.23.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
@@ -94,5 +94,5 @@
94
94
  "build:front": "tsc -p src/front/tsconfig.json",
95
95
  "test": "npm run build:cjs && node --test \"test/**/*.test.mjs\""
96
96
  },
97
- "version": "0.23.0"
97
+ "version": "0.23.1"
98
98
  }
@@ -353,7 +353,12 @@ export class ListPropertySelect {
353
353
  signal.throwIfAborted();
354
354
  if (this.disposed)
355
355
  throw new Error('List disposed');
356
- if (status !== 'removed' && this.paths().includes(path)) {
356
+ if ((status !== 'removed') && this.paths().includes(path)) {
357
+ if (intent.action === 'add') {
358
+ const aside = this.content.closest('aside');
359
+ if (aside && (aside.offsetWidth > 0) && (aside.offsetWidth >= aside.parentElement.clientWidth))
360
+ this.pane.close();
361
+ }
357
362
  this.options.addition.reveal(path);
358
363
  if (status === 'existing')
359
364
  this.options.addition.highlight(path);