Ng-zorro-antd: Tag select input field does not grow correctly in IE

Created on 9 Nov 2018  路  1Comment  路  Source: NG-ZORRO/ng-zorro-antd

Version

1.8.0

Environment

all

Reproduction link

https://ng-zorro-antd-start-vsrhwy.stackblitz.io

Steps to reproduce

In IE start typing in the input field of the select component (in tag mode)

What is expected?

The input field has the correct width

What is actually happening?

Input field does not grow correctly

Other?

I assume this is the related code: https://github.com/NG-ZORRO/ng-zorro-antd/blob/4fa93673803d0279589f0448cc17158276beb9d9/components/select/nz-select-top-control.component.ts#L170
Seems not to work correctly in IE, In Safari on MacOS it's also not perfect, but it's not as bad

IE Select

Most helpful comment

scrollwidth stays the same in IE11, it is not correctly calculated.
This could be fixed with this polyfill: https://github.com/gregwhitworth/scrollWidthPolyfill

FYI: scrollwidth bug was fixed in Edge, but not in IE11: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11689089/

>All comments

scrollwidth stays the same in IE11, it is not correctly calculated.
This could be fixed with this polyfill: https://github.com/gregwhitworth/scrollWidthPolyfill

FYI: scrollwidth bug was fixed in Edge, but not in IE11: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11689089/

Was this page helpful?
0 / 5 - 0 ratings