vue2-excel-grid 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-excel-grid",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "Excel-style grid component for Vue 2.6.14 with virtual scrolling",
5
5
  "main": "dist/vue2-excel-grid.umd.js",
6
6
  "module": "dist/vue2-excel-grid.esm.js",
@@ -479,6 +479,10 @@
479
479
  class="eg-select-search-input"
480
480
  :value="selectDropdown.searchQuery"
481
481
  placeholder="Qidirish..."
482
+ autocomplete="off"
483
+ autocorrect="off"
484
+ autocapitalize="off"
485
+ spellcheck="false"
482
486
  @input="onDropdownSearch"
483
487
  @keydown.stop="onDropdownSearchKeyDown"
484
488
  />
@@ -1813,7 +1817,7 @@ export default {
1813
1817
 
1814
1818
  // Open select dropdown on click if cell was already active (2nd click)
1815
1819
  const col = this.leafCols[ci]
1816
- if (wasActive && col && this.isSelectLikeCol(col) && this.isCellEditable(ri, ci)) {
1820
+ if (wasActive && col && this.isSelectLikeCol(col) && !this.hasEditSlot(col) && this.isCellEditable(ri, ci)) {
1817
1821
  this.openSelectDropdown(ri, ci, e)
1818
1822
  e.preventDefault()
1819
1823
  this.isMouseDown = true
@@ -1852,7 +1856,7 @@ export default {
1852
1856
  onCellDblClick(ri, ci) {
1853
1857
  const col = this.leafCols[ci]
1854
1858
  if (!this.isCellEditable(ri, ci)) return
1855
- if (col && this.isSelectLikeCol(col)) {
1859
+ if (col && this.isSelectLikeCol(col) && !this.hasEditSlot(col)) {
1856
1860
  this.openSelectDropdownForActive()
1857
1861
  return
1858
1862
  }
@@ -2030,7 +2034,7 @@ export default {
2030
2034
  if (key === 'F2') {
2031
2035
  e.preventDefault()
2032
2036
  const activeCol = this.leafCols[this.activeCell.col]
2033
- if (activeCol && this.isSelectLikeCol(activeCol)) {
2037
+ if (activeCol && this.isSelectLikeCol(activeCol) && !this.hasEditSlot(activeCol)) {
2034
2038
  this.openSelectDropdownForActive()
2035
2039
  } else if (activeCol && activeCol.type === 'checkbox') {
2036
2040
  this.toggleCheckbox(this.activeCell.row, this.activeCell.col)
@@ -2126,7 +2130,7 @@ export default {
2126
2130
  if (e.ctrlKey || e.metaKey || e.altKey) return
2127
2131
  if (e.key && e.key.length === 1) {
2128
2132
  const activeCol = this.leafCols[this.activeCell.col]
2129
- if (activeCol && this.isSelectLikeCol(activeCol)) {
2133
+ if (activeCol && this.isSelectLikeCol(activeCol) && !this.hasEditSlot(activeCol)) {
2130
2134
  e.preventDefault()
2131
2135
  this.openSelectDropdownForActive()
2132
2136
  return