Skip to content

Commit

Permalink
fix: getValue from element else fallback to value
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed May 10, 2024
1 parent c3b893f commit c8e06af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ const CoCreateEvents = {

let ifValue = element.getAttribute(`${prefix}-if-value`)
if (!ifValue && ifValue !== "")
ifValue = values // await element.getValue()
ifValue = await element.getValue() || values //values // await element.getValue()
else if (ifValue || ifValue === "")
ifValue = [ifValue]
else
Expand Down

0 comments on commit c8e06af

Please sign in to comment.