Skip to content

Commit

Permalink
Merge pull request #17 from helsingborg-stad/fix/conditional-issue
Browse files Browse the repository at this point in the history
fixed variable declaration
  • Loading branch information
sebastianthulin authored May 8, 2020
2 parents 6fc35b5 + 3c5d894 commit e6c07e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/front/handle-conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default (function ($) {

HandleConditions.prototype.handleEvents = function () {
$('input[conditional]').change(function(e) {
$target = $(e.target).parents('[class*="mod-form"]');
const $target = $(e.target).parents('[class*="mod-form"]');
var conditional = $(e.target).attr('conditional');
if (typeof conditional !== 'undefined' && conditional.length > 0) {
var conditionObj = JSON.parse(conditional);
Expand Down

0 comments on commit e6c07e2

Please sign in to comment.