rimmel icon indicating copy to clipboard operation
rimmel copied to clipboard

Fix: handle nullish values in template sinks with ?? operator

Open the-matrixneo opened this issue 2 months ago • 1 comments

This PR addresses a bug where plain objects with a primitive .value property { value: 0 }) were incorrectly processed by the rml parser. these effects were considered

  • rendering as HTML content <div>${expr}</div>.
  • when rendered inside an element's attribute <input value="${expr}">.

The Fix:

  • new logical check has been added to the beginning of the data sink processing logic in the main rml function.
  • this check now correctly identifies these "value-wrapper" objects and extracts their primitive value.

Please add hacktoberfest label

the-matrixneo avatar Oct 02 '25 11:10 the-matrixneo