diff --git a/src/index.js b/src/index.js index a4c5071..2d9a467 100644 --- a/src/index.js +++ b/src/index.js @@ -105,9 +105,8 @@ function initEvent(element, input) { async function setCalcationResult(element) { const { object, isRealtime } = getAttributes(element); - let calculate = element.getAttribute('calculate'); - let calString = await getValues(calculate); + let calString = await getValues(element.getAttribute('calculate')); if (calString) { let result = calculate(calString);