@lvce-editor/virtual-dom 8.9.0 → 8.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1030,7 +1030,7 @@ const getEventListenerArg = (param, event) => {
|
|
|
1030
1030
|
case 'event.y':
|
|
1031
1031
|
return event.y;
|
|
1032
1032
|
default:
|
|
1033
|
-
if (param.startsWith('event.target.dataset')) {
|
|
1033
|
+
if (typeof param === 'string' && param.startsWith('event.target.dataset')) {
|
|
1034
1034
|
const rest = param.slice('event.target.dataset.'.length);
|
|
1035
1035
|
return event.target.dataset[rest];
|
|
1036
1036
|
}
|