Angular: how to modify a method of library

94 Views Asked by At

I am using ng-select library (v9.x) (https://www.npmjs.com/package/@ng-select/ng-select) And now this library has an issue on all versions (https://github.com/ng-select/ng-select/pull/2134), but only have PR to fix this issue on the latest version (>10.x).

I want to extend the NgSelectComponent to override a method of this component (focus method) to fix that issue.

So, how can I do that?

1

There are 1 best solutions below

5
Zerotwelve On

you can fork the library form GitHub, do your fixes and then package the library, create a tar.gz and install it locally.