Picker.get() always fail

Good morning,
What’s the point of having a .get() function if you have to pass a variable?
For example doing $f7.picker.get(document.querySelector('#id')) method always fails returning undefined

In my case I used a forEach to initialize the pickers, I used an object to group the references and resolve the problem.


let containerPicker = {};
document.querySelectorAll(element).forEach((el, index) => {
     containerPicker[index] = $f7.picker.create({ .... });

Have you tried using the element ID only, without document.querySelector?


Yes, i tried but nothing work just put variable into object like i said.