pict-section-form 1.3.1 → 1.3.2
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
|
@@ -289,7 +289,10 @@ class PictInputObjectEditor extends libPictSectionInputExtension
|
|
|
289
289
|
{
|
|
290
290
|
RenderableHash: 'ObjectEditor-Container',
|
|
291
291
|
TemplateHash: 'ObjectEditor-Container-Template',
|
|
292
|
-
|
|
292
|
+
// pict-view resolves a renderable's destination from ContentDestinationAddress
|
|
293
|
+
// (see Pict-View.buildRenderOptions). A bare DestinationAddress is ignored, so the
|
|
294
|
+
// container template never painted into the slot and the tree had nowhere to mount.
|
|
295
|
+
ContentDestinationAddress: tmpSlotID,
|
|
293
296
|
RenderMethod: 'replace'
|
|
294
297
|
}
|
|
295
298
|
]
|
|
@@ -329,7 +332,10 @@ class PictInputObjectEditor extends libPictSectionInputExtension
|
|
|
329
332
|
|
|
330
333
|
try
|
|
331
334
|
{
|
|
332
|
-
|
|
335
|
+
// Render the container into the CURRENT slot explicitly. The host slot's RawHTMLID is
|
|
336
|
+
// regenerated on every form re-render, so a re-used view instance would otherwise paint into
|
|
337
|
+
// its original (now-removed) slot; passing the destination here re-points it every mount.
|
|
338
|
+
let tmpResult = tmpView.render('ObjectEditor-Container', tmpSlotID);
|
|
333
339
|
if (tmpResult && typeof tmpResult.then === 'function')
|
|
334
340
|
{
|
|
335
341
|
tmpResult.then(
|