Oct 22, 2020, 7:04 AM
[OPEN] [#1833] Tooltip on initially disabled button
Hello support team,
please take a look at this simple example:
2. When the button is initially enabled, the tooltip will only show properly after the page has been loaded and the button has been disabled for the first time, and from then on only for the disabled state.
3. When the
4. When the
Can you please find a solution to this behavior that ensures that the tooltip is always displayed, especially if the button is initially disabled and then enabled / disabled according to the needs of the application?
Thank you.
Tested on Ext JS 7.1.0.46 / Ext.NET 5.1.0.
Kind regards
Dan
please take a look at this simple example:
@using Ext.Net;
@using Ext.Net.MVC;
@{
ViewBag.Title = "Tooltip on button";
Layout = null;
var X = Html.X();
}
<!DOCTYPE html>
<html>
<head>
<title>Ext.NET MVC Test Case</title>
</head>
<body>
@(X.ResourceManager())
@X.DisplayField().ID("version").ReadOnly(true).Margin(10).Width(200)
@X.Button().ID("button").Text("Button With Tooltip").Margin(10).ToolTip("tooltip").Disabled(true).StyleSpec("pointerEvents: all")
@X.Button().Text("Toggle").Margin(10).OnClientClick("Ext.getCmp('button').setDisabled(!Ext.getCmp('button').disabled)")
</body>
</html>
<script type="text/javascript">
Ext.onReady(function () {
Ext.getCmp("version").setValue("Ext JS " + Ext.getVersion().version + " / " + "Ext.NET " + Ext.net.Version);
});
</script>
1. When the button is initially disabled, the tooltip is not activated until after the first cycle of enabling/disabling the button, and from this moment on it is only displayed for the disabled state.2. When the button is initially enabled, the tooltip will only show properly after the page has been loaded and the button has been disabled for the first time, and from then on only for the disabled state.
3. When the
pointerEvents
style is removed and the button is initially disabled, the tooltip will never appear.4. When the
pointerEvents
style is removed and the button is initially enabled, the tooltip is displayed only after the page is loaded, it is never displayed again after the first disabling/enabling cycle.Can you please find a solution to this behavior that ensures that the tooltip is always displayed, especially if the button is initially disabled and then enabled / disabled according to the needs of the application?
Thank you.
Tested on Ext JS 7.1.0.46 / Ext.NET 5.1.0.
Kind regards
Dan