adopted-ember-addons / adopted-ember-addons/emberx-select

Edge and long arrays.

未關閉
#201 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Bug Investigate
主要語言
JavaScript
星號
198
分支
77
PR 合併指標
30 天內沒有已合併 PR

描述

### Version of x-select: 3.1

### Ember Version / Ember CLI Version: 2.12

**Ember Version:**
**Ember CLI Version:**

### Expected Behavior

emberx-select should not cause Edge ( v13) to crash when it is given a very long list of options.

### Actual Behavior

Passing in a long list of options causes older versions of Edge to crash, Javascript shows an error in console but in classic IE fashion you cant debug the crash with the console open.

Background: emberx-select was being used on an insurance form for 20+ questions.

It was used numerous times across numerous pages and worked like a charm for every question.

Unfortunately one question, had 200+ options and only in Edge ( tested in 25/13 ) it would cause a crash. Edge would popup about an array being empty? and the component would not draw or work.

I couldn't debug the crash as Edge would not report anything of use, but deleting options to around 100 would then make it work.

Only crashed in Edge ( IE9 / 10 / 11 / Chrome / Android etc... all fine ).

Im adding this issue so developers who need to support all browsers / browser versions etc... know this is a possible issue.

In the end I just wrote my own to replace emberx-select and managed the data differently. I suspect each being its own component causes large overheads and unexpected behaviour in Edge.

The overheads are also seen on mobile platforms as they dont have the same processing power.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。