Skip to content

jQuery-UI 1.13.0 tooltip bug #1990

Closed

Description

Image for: Description

Hi team.

I have found an issue in the latest release (1.13.0) when my self content function of the tooltip plugin returns an empty string, the problem not appears at the same moment but appear when you try to do something in other widgets of the user interface.

As an example, I have write the proof of concept that creates a datepicker after programs the tooltip plugin, if you use the previous month button, all works fine but when you move the mouse to the next month button, the problem appear and when you try to do a click in the button, a javascript error appear.

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>TEST</title>
    <link href="jquery-ui-1.13.0/jquery-ui.css" rel="stylesheet">
</head>
<body>
    <script src="jquery-ui-1.13.0/external/jquery/jquery.js"></script>
    <script src="jquery-ui-1.13.0/jquery-ui.js"></script>

<script>

"use strict";

$(function() {

    $(document).tooltip({
        items:"[title][title!='']",
        content:function() {
            var title = $(this).attr("title");
            if (title == "Next") {
                return "";
            }
            return title;
        }
    });

    $("body").append("<div id='datepicker'></div>");
    $("#datepicker").datepicker();

});

</script>

</body>
</html>

Thanks in advance.

Josep.

Metadata

Image for: Metadata

Metadata

Image for: Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Image for: Issue actions