bootgrid: align datakey with the rest of the options, but allow top-level placement

This commit is contained in:
Stephan de Wit 2026-05-13 09:47:43 +02:00
parent 9e7fad6c31
commit 1fe9b82f78

View file

@ -321,9 +321,10 @@ class UIBootgrid {
}
}
if (compatOptions?.datakey) {
// note: this does not come from the 'options' object
this.options.datakey = compatOptions?.datakey;
const datakey = compatOptions?.datakey || bootGridOptions?.datakey;
if (datakey) {
// datakey can come from top-level object for legacy reasons
this.options.datakey = datakey;
}
if (bootGridOptions?.onBeforeRenderDialog) {