Hi,
I have a TextItem with icons working as kind of spinner buttons.
I have noticed that when user clicks on the icon to fast, it generates double click event that is not sent to icon, not to item, but to form (or some outer container).
Double click on the "clear" icon and you will see alert from form.doubleclick while it should be the one from item.
Best regards,
Janusz
I have a TextItem with icons working as kind of spinner buttons.
I have noticed that when user clicks on the icon to fast, it generates double click event that is not sent to icon, not to item, but to form (or some outer container).
Code:
var form = isc.DynamicForm.create({ autoDraw: false, doubleClick: "window.alert('form doubleclick')", items: [{ name: "search", title: "Search Term", width: 200, suppressBrowserClearIcon:true, doubleClick: function() { window.alert('item doubleclick'); return false; }, icons: [{ name: "view", src: "[SKINIMG]actions/view.png", hspace: 5, inline: true, baseStyle: "roundedTextItemIcon", showRTL: true, tabIndex: -1 }, { name: "clear", src: "[SKINIMG]actions/close.png", width: 10, height: 10, inline: true, prompt: "Clear this field", click : function (form, item, icon) { item.clearValue(); item.focusInItem(); } }], iconWidth: 16, iconHeight: 16 }] }); isc.VStack.create({ width: "100%", members: [form] });
Best regards,
Janusz