Skip to content

Commit

Permalink
fix #1091
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Mar 8, 2021
1 parent dfff97f commit bc6dbb2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Grid/Displayers/Limit.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ public function display($limit = 100, $end = '...')

$value = Helper::strLimit($this->value, $limit, $end);

$original = $this->column->getOriginal();

if ($value == $original) {
if ($value == $this->value) {
return $value;
}

Expand All @@ -54,7 +52,7 @@ public function display($limit = 100, $end = '...')
&nbsp;<a href="javascript:void(0);" class="limit-more">&nbsp;<i class="fa fa-angle-double-down"></i></a>
</div>
<div class="limit-text d-none">
<span class="text">{$original}</span>
<span class="text">{$this->value}</span>
&nbsp;<a href="javascript:void(0);" class="limit-more">&nbsp;<i class="fa fa-angle-double-up"></i></a>
</div>
HTML;
Expand Down

0 comments on commit bc6dbb2

Please sign in to comment.