Comments (9)
@ronzeidman has fixed this issue here https://github.com/ronzeidman/ng2-select/commit/4590bb25d340bb0a085db0f66cd503cf87ed5dcc
from ng2-select.
Yes I am experiencing this too. I have 7 ng-selects on a page, they all open at once
from ng2-select.
Yes I am experiencing this too. I have 7 ng-selects on a page, they all open at once
from ng2-select.
Yes I am experiencing this too. I have 7 ng-selects on a page, they all open at once
from ng2-select.
I made an attempt, logged above, to fix this. It's a little raw and untested, as I've decided to do something different for the app I'm working on, but at least on the demo page it fixed this bug. It rewrote core parts of the event handling code, and I don't know if the behavior remained 100% the same.
from ng2-select.
I am having the same problem.
@rlodge I know is just a little raw but using [hidden] instead of ngIf will cause errors in IE9/10.
Not sure why *ngIf
is not working here. We can use [class.hidden]
maybe?
See:
angular/angular#5774
from ng2-select.
@knifir I wasn't aware of that. My current work projects are targeting only IE 11 & edge.
I unfortunately don't have a lot of time to mess with it at the moment (I've gone a different with the UI I'm working, wrapping the latest release of Selectize in a directive, partly so I could learn more about writing angular 2 directives).
I switched to [hidden]
instead of *ngIf
because of the way I decided to do detection of which element was clicked in getOffSideClickHandler
. The element.contains
code was the easiest way to do it, but it didn't work with *ngIf
because by the time the click was received by the handler, the element had been removed by angular from the DOM, and so the check was always false. [hidden]
was the easy solution to that.
An alternative to [hidden]
would be to add a unique class to the element and its children, and use that. E.g. instead of using ui-select
to check if you're on the element managed by the current instance of the component, all elements in the template should contain a class of ng2-select-<UUID>
or similar, and then check for that instead of element.contains
.
from ng2-select.
So when will this fix be merged into the repo?
from ng2-select.
can anyone provide solution for validation in this ng2-select.??????????
from ng2-select.
Related Issues (20)
- Angular 10 support? HOT 2
- Is anyone know any alternative of ng2-select library? HOT 2
- Can't bind to 'multiple' since it isn't a known property of 'ng-select' HOT 1
- 使用ng2-select进行响应式表单验证问题
- t directive
- Multiselect with checkboxis ?
- text property in items can't be Number
- How to add Tooltip in ng2-selsect
- Avoid & in ng-select drop down in angular 7 HOT 1
- getting ng2SelectEmptyError for optional dropdown
- Input data was spoiled after typing special chars!
- ng2-select not working after upgrade to Angular 8 HOT 7
- How to clear Validate when using with FormControlName
- Hi all:
- How to set a value requested from an API HOT 1
- Breaks with Ivy HOT 6
- Problem with nested array
- disable automatic focusToInput
- Is this lib dead? HOT 3
- No css file in docs or even in project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-select.