jQuery UI Tooltips not working with all versions of IE 11
Greetings,
We have just completed converting or tooltips over to jQuery UI 1.11.4 (jQuery 1.11.3) and I have discovered that some version of IE 11 work and some don't.
Is anyone aware of this and if so, can you identify the version where this works reliably (so I can set a minimum version baseline)?
I have verified that the browsers are NOT in compatibility mode.
This version works: 11.0.9600.17959 (UPD: 11.0.22)
This version fails: 11.0.9600.17501 (UPD: 11.0.15)
The symptom is that the keyword is rendered, but the tooltip never pops up and it's text is never rendered.
Thank you,
Dan
HTML (example):
- <div class="popper" id="ttip_1" title="[This is <br />tooltip<br /> text!]">Hover here</div>
CSS (please pardon the use of "important!"):
- /* Style for the <div>text</div> that triggers the pop-up tooltip */
- .popper {
- color: blue;
- display: inline;
- }
- .ui-tooltip {
- max-width: 450px !important;
- }
- .ui-tooltip-content {
- /* background-color: #b7dde8 !important; */
- font-size: 18px !important;
- }
- .ui-tooltip-content::after, .ui-tooltip-content::before {
- position: absolute;
- border-style: solid;
- display: block;
- }
- .ui-tooltip-content::before {
- bottom: -10px;
- border-color: blue;
- border-width: 10px 10px 0;
- }
- .ui-tooltip-content::after {
- bottom: -7px;
- border-color: gray;
- border-width: 10px 10px 0;
- }
This is my script code:
- /* Allow HTML rendering */
- $.widget("ui.tooltip", $.ui.tooltip, {
- options: {
- content: function () {
- return $(this).prop('title');
- },
- }
- });
-
- $(function() {
- $( "div[id^='ttip_']" ).tooltip({
- show: "slideDown",
- position: {
- my: "center bottom",
- at: "right top-100%",
- collision: "flipfit"
- },
- });
- });