extnet / Ext.NET

35 stars 41 forks source link

Tooltips not displayed on buttons when they are disabled and re-enabled. #1833

Open fabriciomurta opened 3 years ago

fabriciomurta commented 3 years ago

Found: 5.2.0 Ext.NET forums thread: Tooltip on initially disabled button Sencha thread: Tooltips not working when button is disabled. Intended? Sencha ticket: 52467 Sencha issue: EXTJS-28965

Tooltips won't show on buttons once they are disabled then re-enabled. This happens because Ext.button.Button.setTooltip() is called too early when re-enabling a button (Ext.button.Button.onEnable()) and it only sets the respective DOM attributes in a "disable layer" added to the button for the purpose of showing tooltips when the button is disabled. It needs to clear the tooltip attribute in the layer, but add it back to the button itself while re-enabling it. Yet, the current logic must be retained in case a tooltip is assigned to a button that is already disabled.

Sencha fiddle reproducing the issue: button tooltip issue in extjs 7.3.1.

fabriciomurta commented 3 years ago

Sencha issue updated from EXTJS-18529 to EXTJS-28965 to reflect the related Sencha ticket.