Browse Source

fix(nc-gui): Added lazy rendering in selection option in adding an option

pull/6628/head
Muhammed Mustafa 1 year ago
parent
commit
78ccd8dc44
  1. 2
      packages/nc-gui/components/smartsheet/column/SelectOptions.vue

2
packages/nc-gui/components/smartsheet/column/SelectOptions.vue

@ -146,7 +146,7 @@ const addNewOption = () => {
isReverseLazyLoad.value = true
loadedOptionAnchor.value = options.value.length - OPTIONS_PAGE_COUNT * 2
loadedOptionAnchor.value = options.value.length - OPTIONS_PAGE_COUNT
loadedOptionAnchor.value = Math.max(loadedOptionAnchor.value, 0)
renderedOptions.value = options.value.slice(loadedOptionAnchor.value, options.value.length)

Loading…
Cancel
Save