Skip to content

Commit 05ab8ba

Browse files
committed
fixed rendering of an action column
1 parent 7b869c3 commit 05ab8ba

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Yii2 widget for handle multiple inputs for an attribute of model and tabular inp
88
[![License](https://poser.pugx.org/unclead/yii2-multiple-input/license)](https://packagist.org/packages/unclead/yii2-multiple-input)
99

1010
## Latest release
11-
The latest stable version of the extension is v2.11.1 Follow the [instruction](./UPGRADE.md) for upgrading from previous versions
11+
The latest stable version of the extension is v2.11.2 Follow the [instruction](./UPGRADE.md) for upgrading from previous versions
1212

1313
## Installation
1414
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"yii2 tabular input"
1010
],
1111
"type": "yii2-extension",
12-
"version": "2.11.1",
12+
"version": "2.11.2",
1313
"license": "BSD-3-Clause",
1414
"support": {
1515
"issues": "https://github.com/unclead/yii2-multiple-input/issues?state=open",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery.multipleInput",
3-
"version": "2.11.1",
3+
"version": "2.11.2",
44
"description": "jQuery multipleInput",
55
"scripts": {
66
"build": "npm install && (gulp || node node_modules/gulp/bin/gulp.js)"

src/TabularInput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class TabularInput extends Widget
2626
const POS_HEADER = RendererInterface::POS_HEADER;
2727
const POS_ROW = RendererInterface::POS_ROW;
2828
const POS_FOOTER = RendererInterface::POS_FOOTER;
29+
const POS_ROW_BEGIN = RendererInterface::POS_ROW_BEGIN;
2930

3031
/**
3132
* @var array

src/renderers/TableRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private function renderRowContent($index = null, $item = null)
187187
}
188188
}
189189

190-
if (!$isLastRow && $this->isAddButtonPositionRow()) {
190+
if (!$isLastRow && !$this->isAddButtonPositionRow()) {
191191
$cells[] = $this->renderActionColumn($index);
192192
}
193193

0 commit comments

Comments
 (0)