question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use UI-Select with the new aspnetboilerplate startup template

See original GitHub issue

Hi @ismcagdas @hikalkan @alirizaadiyahsi @yekalkan , I am trying to use ui-select in aspnetboilerplate startup template of MVC5 & AngularJs. The problem is, when I click to select any item, it will fall down and show the list. After selection, it will be back. Like the following screenshot. image

Following is my Code:

<div class="col-md-4 pull-left"> 
<label style="margin-top:-10px;float:left; width:100%; font-size: 13px;font-weight: normal;color: #aaabaf;">
    @L("Customer")
    <ui-select ng-model="vm.selectedCustomer" theme="bootstrap">
        <ui-select-match placeholder="Select a customer">{{$select.selected.name}}</ui-select-match>
        <ui-select-choices position='down' repeat="item in vm.customersList | filter: $select.search">
            <div ng-bind-html="item.name | highlight: $select.search"></div>
            <small ng-bind-html="item.code | highlight: $select.search"></small>
        </ui-select-choices>
    </ui-select>
</label>

(Sorry, the code is not getting formatted here!!)

When I remove my theme’s style.css, it’s working fine… but can’t identify which class is making this trick… This is squeezing me for last one week. I asked the question in stackoverflow also. But still no solutions found. Hope ABP guys can help me out. I have the latest ABP version and my .net framework is 4.6.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sayassykcommented, Nov 30, 2018

Hurraaayy…! 💃 💃 I got it in the final try!!! It was just needed to change the appendToBody option to false in my ui-select configuration like this:

app.config(['uiSelectConfig', function (uiSelectConfig) { uiSelectConfig.theme = 'bootstrap'; uiSelectConfig.resetSearchInput = true; uiSelectConfig.appendToBody = false; }]);

But still don’t know how it was getting solved when I remove our style.css Anyways thank you so much for your support! ❤️

1reaction
sayassykcommented, Nov 30, 2018

ofcourse… I will upload it in google drive and give you the link…

Read more comments on GitHub >

github_iconTop Results From Across the Web

UI-Select is dislocated on focus when using with ...
I am trying to use ui-select in aspnetboilerplate startup template of MVC5 & AngularJs. The template uses AdminBSB Material based theme.
Read more >
Articles Tutorials | AspNet Boilerplate
The easiest way of starting a new project using ABP with ASP.NET MVC 5.x (and ... The startup template uses cookie-based authentication for...
Read more >
Articles Tutorials | AspNet Boilerplate
Create the Application. I used ABP's startup template (http://www.aspnetboilerplate.com/Templates) to create a new web application named "Acme.SimpleTaskApp" ...
Read more >
Articles Tutorials | AspNet Boilerplate
AspNet Boilerplate (ABP) is an open source and well-documented application framework. See the comprehensive tutorials of ABP for technical information.
Read more >
Articles Tutorials | AspNet Boilerplate
You can create your project from a startup template, which is a simple, empty web project. It is properly integrated and configured to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found