Comments (9)
I just pushed a patch, could You test with this new version?
from angular-bootstrap-select.
I have a problem of using this plugin inside ng-repeat. Select was showed up twice.
from angular-bootstrap-select.
I am seeing the same thing as @GarPit
from angular-bootstrap-select.
Does anyone have a fix for this issue?
from angular-bootstrap-select.
It's probably because of the version of the bootstrap-select, I'll set it version to 1.5.4 in bower.json to maintain compatibility.
see: https://github.com/joaoneto/angular-bootstrap-select/tree/v0.0.x
from angular-bootstrap-select.
No it's not because of the version of the bootstrap-select, I reproduce that bug in http://codepen.io/joaoneto/pen/azoEdG
May be "ng-if" directive conflict... but I don't know what is happening
😞
from angular-bootstrap-select.
Using "compile" function, ngIf, creates a new scope, it duplicates the DOM of bootstrap-select calling the .selectpicker('refresh')
in postLink.
codepen fixed, now working with ng-repeat:
http://codepen.io/joaoneto/pen/azoEdG
"ngIf" docs explains: https://docs.angularjs.org/api/ng/directive/ngIf
Note that when an element is removed using ngIf its scope is destroyed and a new scope is created when the element is restored. The scope created within ngIf inherits from its parent scope using prototypal inheritance. An important implication of this is if ngModel is used within ngIf to bind to a javascript primitive defined in the parent scope. In this case any modifications made to the variable within the child scope will override (hide) the value in the parent scope.
from angular-bootstrap-select.
So the decision is to use "link" instead of "compile", correct?
from angular-bootstrap-select.
@GarPit correct,
Let's make some tests (we can use codepen), to consolidate this approach before release the version 0.1.0
from angular-bootstrap-select.
Related Issues (20)
- Question : Why does not default selectpicker work?
- 0.1.0-rc2 files under build folder is not built from src?
- Still have 'Nothing Selected' when trying to use Ng-options HOT 1
- Up/Down keys do not work with options list
- ng-options Doesn't Rebind After Scope Variable Change HOT 12
- bower package is not published
- Default picker choice? HOT 1
- selectpicker directive not in README file
- Significant slow down with a lot of options HOT 1
- Multi render
- syntax err line 8 HOT 1
- Doesn't support track by in ng-option HOT 1
- dropdown-toggle doesn't close when used within ng-form
- Directive is duplicating the dropdown boxes in a ng-table column HOT 8
- Support for optgroups?
- Is there a support for options with search? HOT 1
- with ng-model twice selct boxes HOT 1
- ng-options support in angular 1.4
- Livesearch to filter data by mapping string in the begining
- Click event not triggered on document
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 angular-bootstrap-select.