From 6fc2669a05df02acd6930d439d74474a2640d857 Mon Sep 17 00:00:00 2001 From: sarthak Date: Mon, 9 Mar 2026 17:24:55 -0400 Subject: [PATCH] Fix supporting label slotting on prompt command --- src/foam/core/reflow/Prompt.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/foam/core/reflow/Prompt.js b/src/foam/core/reflow/Prompt.js index 35341c00358..b0713dd837d 100644 --- a/src/foam/core/reflow/Prompt.js +++ b/src/foam/core/reflow/Prompt.js @@ -110,11 +110,18 @@ foam.CLASS({ function addToE(e) { var self = this; e.add(this.dynamic(function(type) { - var prop = self.prop = foam.lang[type].create({name: 'value' }); + var prop = self.prop = foam.lang[type].create({ name: 'value' }); let traceId = 'el-' + foam.next$UID(); prop.view = {...(self.view || prop.view), id: traceId}; this.startContext({data: self}) - .tag(prop.__, { config: { label$: self.label$, supportingLabel$: self.supportingLabel$ } }) + .start(prop.__, { config: { label$: self.label$ } }) + .call(function() { + // Now in the context of the property border + this.prop.supportingLabel$.mapFrom(self.supportingLabel$, v => { + return v; + }) + }) + .end() .endContext(); self.traceId = traceId; }));