@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 +1 -1
- package/property-select.js +6 -1
package/package.json
CHANGED
package/property-select.js
CHANGED
|
@@ -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);
|