Skip to content

Commit

Permalink
fix: use action.form and action.params
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Nov 18, 2023
1 parent b29a378 commit 90f9428
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,12 @@ function getRenderValue(node, data, key, renderAs) {
return value
}

async function renderKey(element, params) {
async function renderKey(action) {
// TODO: custom render-keys
const form = element.closest("form") || document;
let element = action.element
let form = action.form || document
let params = action.params

if (!params)
params = 'render-key'

Expand Down Expand Up @@ -683,7 +686,7 @@ async function renderKey(element, params) {
Actions.init({
name: "renderKey",
callback: (action) => {
renderKey(action.element, action.params);
renderKey(action);
}
});

Expand Down

0 comments on commit 90f9428

Please sign in to comment.