Closed bluestar0505 closed 4 years ago
Hi daranyK, I'm also facing this issue did you already resolved it please tell the solution.
Thanks
Do you use jquery?
<th data-title="大カテゴリ名">@sortablelink('category', '')</th>
$( "th" ).each(function() {
title = $(this).data('title');
if (title) {
$(this).children("a").text(title);
}
});
try to change text with first space like this. @sortablelink('category', " 大カテゴリ名")
Hi KingProgrammerOne, It is working. Thanks .
Another solution I found working is, if we change
Line#100 on vendor/kyslik/column-sortable/src/ColumnSortable/SortableLink.php
$title = call_user_func($formatting_function, $title); ↓ if(!preg_match("/^[ぁ-んァ-ヶー一-龠]+$/u",$title)) $title = call_user_func($formatting_function, $title);
Should I raise a PR for this?
try to change text with first space like this. @sortablelink('category', " 大カテゴリ名")
work like a magic
@sortablelink('category', 'Category') It is working. @sortablelink('category', "大カテゴリ名") It is displaying empty.