Skip to content

Commit

Permalink
Fix undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbelanger committed Feb 3, 2024
1 parent ae7ffad commit c214de1
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 35 deletions.
30 changes: 15 additions & 15 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions dist/index.modern.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.modern.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/js/Input/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ export default function Autocomplete({
newValue = [v];
}

const e = { target: { name } };
if (setValue) {
setValue(newValue, e);
} else {
const e = { target: { name } };
setValues(e, name, newValue, afterChange);
}

Expand All @@ -177,10 +177,10 @@ export default function Autocomplete({
newValue = '';
}

const e = { target: { name } };
if (setValue) {
setValue(newValue, e);
} else {
const e = { target: { name } };
setValues(e, name, newValue, afterChange);
}

Expand Down Expand Up @@ -249,10 +249,10 @@ export default function Autocomplete({
const clear = () => {
const newValue = [];

const e = { target: { name } };
if (setValue) {
setValue(newValue, e);
} else {
const e = { target: { name } };
setValues(e, name, newValue, afterChange);
}

Expand Down

0 comments on commit c214de1

Please sign in to comment.