2017-06-06 50 views
0

顯示雙空白項我使用的是NG-表選擇濾波器:NG-表選擇濾波器在IE

<table ng-table="wrCtrl.waitingRoomTable" show-filter="true" cellspacing="0"> 
    <tr ng-repeat="item in $data" ng-form name="form-data"> 

     <td data-title="'Status'" filter="{importStatusDisplayText: 'select'}" filter-data="ctrl.importStatuses" sortable="'importStatusDisplayText'"> 
      <span id="importStatus">{{::item.importStatusDisplayText}}</span> 
     </td> 

    </tr> 
</table> 

源陣列(importStatuses)爲:

[ {id: 0, displayText: "Created"}, 
    {id: 1, displayText: "Error"}, 
    {id: 2, displayText: "Success"}, 
    {id: 3, displayText: "Rerun"}, 
    {id: 4, displayText: "Resolved manually"},] 

並生成在IE中得到以下結果(使用IE 11和Edge進行測試)。在Chrome上,它會正確顯示下拉菜單。

importStatusDisplayText是一個從importStatuses數組中取出所選displayText值的屬性。

enter image description here

這似乎是與IE瀏覽器問題,NG-表,因爲我得到NG-表examples page相同的結果。

有沒有辦法解決這種行爲也爲IE?

回答

0

在這篇文章請看: Add a NgTableParams setting to modify the default "-" value for SELECT filters

在我來說,我不得不手動更新NG表,因爲我有一箇舊的版本,無法更新至最新版本。

+0

感謝您的鏈接,但並沒有解決我的問題。我檢查了ng-table網站和他們的網站上的問題,如果你使用IE瀏覽器,他們會遇到同樣的問題。我也嘗試更改有關選擇過濾器的默認值的源代碼,但在IE中它不能解決問題。 – Francesco

+0

這是真的,它不在IE:( –

+0

你有沒有找到解決這個問題?我也有同樣的問題在Safari – Janey