Skip to content

Commit

Permalink
fix(element): fix ignored on event handlers
Browse files Browse the repository at this point in the history
fixes #6399
  • Loading branch information
nolimits4web committed Feb 17, 2023
1 parent d34ca69 commit 898f76c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/element/get-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ function getParams(element) {
const passedParams = {};
extend(params, defaults);

const allowedParams = paramsList.map((key) => key.replace(/_/, ''));
const localParamsList = [...paramsList, 'on'];

const allowedParams = localParamsList.map((key) => key.replace(/_/, ''));

// First check props
paramsList.forEach((paramName) => {
localParamsList.forEach((paramName) => {
paramName = paramName.replace('_', '');
if (typeof element[paramName] !== 'undefined') {
passedParams[paramName] = element[paramName];
Expand Down

0 comments on commit 898f76c

Please sign in to comment.