42👍
You can solve that by preventing the default action of the anchor element:
$('a#testpop').on('click', function(e) {e.preventDefault(); return true;});
- [Django]-TransactionManagementError "You can't execute queries until the end of the 'atomic' block" while using signals, but only during Unit Testing
- [Django]-How do I extend the Django Group model?
- [Django]-Django – limiting query results
- [Django]-Django syncdb and an updated model
- [Django]-What is the benefit of using a HyperlinkedModelSerializer in DRF?
- [Django]-Django form got multiple values for keyword argument
3👍
This can also be cause by having an element with autofocus=on
within the popover (tested in chrome)
- [Django]-Django 2.0 path error ?: (2_0.W001) has a route that contains '(?P<', begins with a '^', or ends with a '$'
- [Django]-Check for pending Django migrations
- [Django]-Django and Restful APIs
- [Django]-Django: For Loop to Iterate Form Fields
- [Django]-Django add extra field to a ModelForm generated from a Model
- [Django]-Django models | get specific columns
0👍
I’m using Bootstrap 2.3.2
The point is not about clicking. Even if I call show popover programatically, it scrolls me up to the top.
The point is on bootstrap tooltip show function. There is a line there:
$tip.detach().css({ top: 0, left: 0, display: 'block' })
It applies the display block when detaching tip just to get its height and width. This is a metaphysical question! Invisible elements do not have a height!! To fix this I commented that line and added:
$tip.show();
Just after the line where it gets a position:
pos = this.getPosition()
It worked to me.
- [Django]-What is the use of PYTHONUNBUFFERED in docker file?
- [Django]-Django models ForeignKey on_delete attribute: full meaning?
- [Django]-Getting model ContentType in migration – Django 1.7
0👍
I encountered the same problem with Bootstrap v3.3.2 and solved it by using buttons instead of anchor tags.
I then went back to Bootstrap docs and found that all but one of the popover examples given there use buttons – and surprise surprise – the one that does use the anchor leaves out the href attribute!
- [Django]-Memory efficient (constant) and speed optimized iteration over a large table in Django
- [Django]-How to add clickable links to a field in Django admin?
- [Django]-Django AutoField with primary_key vs default pk
- [Django]-How to reset migrations in Django 1.7
- [Django]-Django fix Admin plural
- [Django]-Django variable in base.html