mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
disallow hx-on
if allowEval
is not true
This commit is contained in:
parent
c96f01e81e
commit
1d146b103d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user