mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-04-25 21:32:14 +00:00
disallow hx-on if allowEval is not true
This commit is contained in:
@@ -1882,7 +1882,7 @@ return (function () {
|
||||
|
||||
function processHxOn(elt) {
|
||||
var hxOnValue = getAttributeValue(elt, 'hx-on');
|
||||
if (hxOnValue) {
|
||||
if (hxOnValue && htmx.config.allowEval) {
|
||||
var handlers = {}
|
||||
var lines = hxOnValue.split("\n");
|
||||
var currentEvent = null;
|
||||
|
||||
Reference in New Issue
Block a user