By clicking on the button, a dialog box opens and I want to insert a stepper into it by the ‘open’ event. But the stepper is not displayed in the dialog box, namely in the - ‘.content-block’ class. Please help me solve the problem
f7.dialog.create({
title: textNumber,
content:
'<div class="content-block">' +
'<div class="step"></div>' +
'</div>',
buttons: [
{
text: textOk,
bold: true,
},
{
text: textCancel
}
],
on: {
open: () => {
stepper = f7.stepper.create({
el: '.stepper',
inputEl: document.querySelector('.step'),
value: 1,
min: 0,
max: 100
})
}
}
}).open();