Giter Site home page Giter Site logo

Comments (4)

bianchimro avatar bianchimro commented on August 27, 2024

hi @jkirsch , you have a codepen or something else to show the issue?
regards
Mauro

from ionic-modal-select.

jkirsch avatar jkirsch commented on August 27, 2024

Well currently not - I'll look into providing one.

It feels like some race condition on modal dispose - as I can only trigger it sometimes on an Android Phone - never in the browser.
The modal-open class has a pointer-events: none entry thus disregards all touch events

from ionic-modal-select.

jkirsch avatar jkirsch commented on August 27, 2024

Okay,

I think I found the mistake

I declared the modal in the following way

<div class="item item-button-right" ng-click="forward('selectButton')">
  Description: 
   <button class="button button-clear button-dark ion-android-arrow-dropdown" 
           id="selectButton" modal-select ng-model="mydata" options="::values">
	<div class="option">
	  {{option}}
	</div>
   </button>
</div>

As I wanted to have the entire row clickable .. I resorted to a simple click forwarding
angular.element(document.getElementById(elementname)).triggerHandler('click');

But If one now clicked on the button .. actually the modal is triggered twice .. this creates two instances that are conflicting .. leading to sometimes the case of an unhidden modal.

Obviously just moving the modal select up to the parent div fixed everything.

Sorry for the confusion .. so this is a non issue

For reference better solution

<div class="item item-button-right" modal-select ng-model="mydata" options="::values">
	Description: 
	<button class="button button-clear button-dark ion-android-arrow-dropdown"></button>
	<div class="option">
	  {{option}}
	</div>
</div>

from ionic-modal-select.

bianchimro avatar bianchimro commented on August 27, 2024

@jkirsch thanks for reporting anyway, and for your reference solution

from ionic-modal-select.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.