abichinger / vue-js-cron

Renderless Vue.js cron editor
MIT License
73 stars 23 forks source link

Add support to teleported #55

Closed kouz75 closed 5 months ago

kouz75 commented 5 months ago

When the component is used in a modal, the scroll of the modal move when we open one of the drop down.

several el-element component had the same issue: https://devs.keenthemes.com/question/element-ui-el-select-on-modal-makes-the-scroll

adding :teleported="false" fix the issue.

is there a way to handle this attribut in the component ?

thanks

abichinger commented 5 months ago

Hey,

Unfortunatly, I havn't been able to reproduce your issue. https://codesandbox.io/p/sandbox/vue-js-cron-ant-locale-50-forked-d5qsvz

However, I thought I already exposed the dropdown attributes. I'm going to add a property called dropdownProps to the cron-element-plus component. Then you should be able to set teleported to false

abichinger commented 5 months ago

Please let me know if the latest version works. https://abichinger.github.io/vue-js-cron/typedoc/interfaces/_vue_js_cron_element_plus.CronElementPlusProps.html#dropdownProps

kouz75 commented 5 months ago

hi, thanks it's working with the new version.