mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
only set the value if there is a name on the button
This commit is contained in:
parent
1298c41435
commit
b399258dec
@ -1798,8 +1798,9 @@ return (function () {
|
||||
var internalData = getInternalData(elt);
|
||||
if (internalData.lastButtonClicked) {
|
||||
var name = getRawAttribute(internalData.lastButtonClicked,"name");
|
||||
var value = internalData.lastButtonClicked.value;
|
||||
values[name] = value;
|
||||
if (name) {
|
||||
values[name] = internalData.lastButtonClicked.value;
|
||||
}
|
||||
}
|
||||
|
||||
// include any explicit includes
|
||||
|
Loading…
x
Reference in New Issue
Block a user