I am calling this function in element javascript to clear another elements value.
The clear function in element.js is calling the dropdown.js update function with an empty string. The argument is typeof string and for some reason JSON.validate is returning true because the JSON.parse is being called and it returns this error.
An empty string is not valid JSON so no idea why the validate is passing.
The clear function in element.js is calling the dropdown.js update function with an empty string. The argument is typeof string and for some reason JSON.validate is returning true because the JSON.parse is being called and it returns this error.
An empty string is not valid JSON so no idea why the validate is passing.