@@ -231,17 +231,23 @@ const CoCreateRender = {
231
231
else
232
232
that . renderMap ( attr , attr . value , renderArray , renderKey )
233
233
234
+ if ( el . tagName == "P" && attr_name == 'document_id' )
235
+ console . log ( 'tessssst' )
236
+
234
237
if ( placeholder ) {
235
238
let updateData = data ;
236
- attrValue = placeholder . placeholder ;
239
+ let oldValue = attrValue
240
+ let temp = placeholder . placeholder ;
237
241
renderKey = placeholder . renderKey
238
242
renderArray = placeholder . renderArray
239
243
if ( renderArray )
240
244
updateData = data [ renderArray ] [ 0 ]
241
245
if ( renderKey )
242
246
updateData = { [ renderKey ] : updateData }
243
247
244
- attrValue = that . __replaceValue ( updateData , attrValue , renderKey ) ;
248
+ attrValue = that . __replaceValue ( updateData , temp , renderKey ) ;
249
+ if ( attrValue == oldValue )
250
+ attrValue = undefined
245
251
}
246
252
else
247
253
attrValue = that . __replaceValue ( data , attrValue , renderKey ) ;
@@ -279,7 +285,7 @@ const CoCreateRender = {
279
285
updateData = { [ renderKey ] : updateData }
280
286
text = that . __replaceValue ( updateData , textContent , renderKey , valueType ) ;
281
287
}
282
- if ( ! text ) {
288
+ if ( ! placeholder && ! text ) {
283
289
textContent = el . textContent ;
284
290
that . renderMap ( el , textContent , renderArray , renderKey )
285
291
text = that . __replaceValue ( data , textContent , renderKey , valueType ) ;
0 commit comments