Comments (14)
Hummm :/
Originally all ui-select directives were elements (E) only => no issue.
The problem is with IE8, the solution proposed by the AngularJS team does not fully work.
If you have a directive that uses one or more directives, then you have no choice than to use attributes (A): angular/angular.js#4020 => clash name with ui.bootstrap.typeahead
And I guess dropping IE8 support considering AngularJS 1.2 supports IE8, is a bit premature.
from ui-select.
@andrewboni @ProLoser @chmanie
What do you think about prefixing everything with ui-select-?
<ui-select>
<match></match>
<choices></choices>
</ui-select>
<ui-select>
<ui-select-match></ui-select-match>
<ui-select-choices></ui-select-choices>
</ui-select>
Most probably Bootstrap-ui will prefix all directives using ui-
AngularJS prefixes their directives using ng-
AngularStrap prefixes their directives using bs-
from ui-select.
Works for me 👍
from ui-select.
yes, that works, thanks!
from ui-select.
Any proposed timeline on this? I'm going to implement the short-term fix on this for now.
from ui-select.
See commit 777c804
from ui-select.
@tkrotoff Could you release it?
from ui-select.
Could you re-build it ?
from ui-select.
Just hit this issue myself... +1
from ui-select.
There's release on my fork if someone really needs it
from ui-select.
Oh. I see it was released 2h ago... A comment would be nice.
from ui-select.
Hi,
I am still experiencing issues with this... I saw a comment above that a fix was released and available for version 0.8.1
, so I updated ui.select
to that version... and also, went ahead and updated ui.bootstrap
to the latest version (0.11.2
).
But even so, I get this whenever a view including the directive is loaded:
Error: [$compile:multidir] Multiple directives [match, typeaheadMatch] asking for new/isolated scope on: <div typeahead-match="" index="$index" match="match" query="query" template-url="templateUrl">
This is my bower.json
file:
{
"name": "merchantUi",
"version": "0.0.0",
"dependencies": {
"modernizr": "2.8.x",
"angular": "1.2.x",
"jquery": "1.x.x",
"angular-animate": "1.2.x",
"angular-cookies": "1.2.x",
"angular-touch": "1.2.x",
"angular-sanitize": "1.2.x",
"angular-resource": "1.2.x",
"angular-ui-router": "0.2.x",
"bootstrap-sass-official": "3.1.x",
"angular-bootstrap": "0.11.2",
"angular-loading-bar": "~0.5.2",
"angular-growl-v2": "~0.7.0",
"angular-ui-select": "0.8.1",
"angular-ui-tree": "~2.1.5"
},
"devDependencies": {
"angular-mocks": "1.2.x"
},
"resolutions": {
"angular": "1.2.22",
"angular-ui-select": "0.8.1"
}
}
This is my angular app declaration:
angular.module('merchantUI',
[
'ngAnimate', 'ngCookies', 'ngTouch', 'ngSanitize',
'ngResource', 'ui.router', 'angular-loading-bar',
'app.config', 'angular-growl', 'ui.select',
'ui.tree', 'ui.bootstrap'
]
)
This is how I'm calling ui-select:
<div class="form-group">
<label for="states">States Doing Business In</label>
<ui-select multiple ng-model="userMerchant.selectedStates" ng-disabled="disabled">
<ui-select-match placeholder="Select states...">{{$item.value}}</ui-select-match>
<ui-select-choices repeat="state.id as state in formItems.states | filter: { value: $select.search }">
<div ng-bind-html="state.value | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
<span class="help-block error" ng-show="companyProfileFormErrors.states" ng-repeat="error in companyProfileFormErrors.states">{{error}}</span>
</div>
and this is how I'm calling typeahead (based on angular-bootstrap docs):
<div class="form-group">
<label for="states">Assign user to these Locations</label>
<input type="text" ng-model="modalOptions.args.selectedLocations" typeahead="location for location in modalOptions.args.locations | filter:$viewValue | limitTo:8" class="form-control">
</div>
from ui-select.
@antillas21 can you put together a plunker to reproduce it?
from ui-select.
@dimirc ... ooh man, this is embarrassing, but I think I have identified the reason behind this...
It's not related to your directive... it's related to a custom directive created in the project, which by the way is named match
.
Thanks for your time, and apologies for this incident.
from ui-select.
Related Issues (20)
- Angular parses selectize/choices.tpl.html template with syntax error
- Is there a plan for a new release? HOT 2
- Mouse does not change active item
- common.css is missing a closing bracket
- Removing active class when selected value was removed
- npm v. 0.19.8 is outdated
- Scrolling to the selected occurrence appears to not work, despite the bugfix in 2016.
- Need a way to register and fire a callback on clicking a tag (In addition to making it the active match) in a multiple select list.
- The selected item is 'disappear' if scroll down/up then scroll back HOT 1
- Angular 1.7 breaks close button HOT 1
- unsafe:javascript:; multiselect (select2) breaks in strict Content Security Policy apps, HOT 2
- Clear value when it is no longer available in the option list
- Bug on change ng-disable when using Multiple Select HOT 1
- No releases since April 2017 HOT 2
- 您好,数据量很多的时候下拉框加载很慢,比如我有1000条数据,点下拉的时候就延迟了三秒钟的样子,请问这个该怎么弄呢,这个优化弄了很多天了,请大佬告诉一下解决办法,谢谢啦 HOT 3
- uis-open-close not working for version 0.19.8
- i have jquery select2 applied in my project but now i want to implement that same in angular js without using jqueryt HOT 2
- ui-select into ui-select trouble HOT 2
- Opening drop down list problem
- Using With typescript
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 ui-select.