Skip to content

Commit

Permalink
Merge pull request #16 from muhimasri/column-width
Browse files Browse the repository at this point in the history
Fix last field tab error
  • Loading branch information
muhimasri authored Jan 4, 2022
2 parents 2da1384 + 5a9dadf commit ca2f5a8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
7 changes: 5 additions & 2 deletions dist/b-editable-table.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -12015,7 +12015,10 @@ var script = Vue.extend({
fieldIndex = i;
this.selectedCell = this.fields[fieldIndex].key;
this.resetItems();
this.tableItems[rowIndex].isEdit = true;

if (this.tableItems[rowIndex]) {
this.tableItems[rowIndex].isEdit = true;
}
} else if (e.code === "Escape") {
e.preventDefault();
this.selectedCell = null;
Expand Down Expand Up @@ -12364,7 +12367,7 @@ var __vue_staticRenderFns__ = [];

const __vue_inject_styles__ = function (inject) {
if (!inject) return;
inject("data-v-49acfc1c_0", {
inject("data-v-87d2cda4_0", {
source: "table.b-table{width:unset}table.b-table td{padding:0}.data-cell{display:flex;width:100%;height:100%}",
map: undefined,
media: undefined
Expand Down
2 changes: 1 addition & 1 deletion dist/b-editable-table.min.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions dist/b-editable-table.ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -11906,7 +11906,10 @@ var BTable = /*#__PURE__*/Vue__default['default'].extend({
fieldIndex = i;
this.selectedCell = this.fields[fieldIndex].key;
this.resetItems();
this.tableItems[rowIndex].isEdit = true;

if (this.tableItems[rowIndex]) {
this.tableItems[rowIndex].isEdit = true;
}
} else if (e.code === "Escape") {
e.preventDefault();
this.selectedCell = null;
Expand Down Expand Up @@ -12241,7 +12244,7 @@ var __vue_staticRenderFns__ = [];

var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
if (!inject) return;
inject("data-v-49acfc1c_0", {
inject("data-v-87d2cda4_0", {
source: "table.b-table{width:unset}table.b-table td{padding:0}.data-cell{display:flex;width:100%;height:100%}",
map: undefined,
media: undefined
Expand All @@ -12253,7 +12256,7 @@ var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
var __vue_scope_id__ = undefined;
/* module identifier */

var __vue_module_identifier__ = "data-v-49acfc1c";
var __vue_module_identifier__ = "data-v-87d2cda4";
/* functional template */

var __vue_is_functional_template__ = false;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-vue-editable-table",
"version": "0.1.1-beta.10",
"version": "0.1.2-beta.1",
"description": "A Bootstrap Vue editable table for editing cells using built-in Bootstrap form elements",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion src/b-editable-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ export default Vue.extend({
fieldIndex = i;
this.selectedCell = this.fields[fieldIndex].key;
this.resetItems();
this.tableItems[rowIndex].isEdit = true;
if (this.tableItems[rowIndex]) {
this.tableItems[rowIndex].isEdit = true;
}
} else if (e.code === "Escape") {
e.preventDefault();
this.selectedCell = null;
Expand Down

0 comments on commit ca2f5a8

Please sign in to comment.