Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Hint message fail to disappair inside FloatItem

    I set the hint message to show inside a FloatItem (setShowHintInField(true)). When the user click inside the FloatItem, the hint message doesen't disappear, and a javascript error happens. The same works properly in case of TextItem.

    SmartClient Version: v10.0p_2014-09-30/LGPL Development Only (built 2014-09-30)

    Firefox 16.0.1, Chrome 36.0.1985.143

    javascript error from consol:
    17:11:35.888:IFCS6:WARN:Log:TypeError: _3 is null
    Stack from error.stack:
    FloatItem.handleEditorEnter() @ app/sc/modules/ISC_Forms.js:1520
    FormItem.elementFocus() @ app/sc/modules/ISC_Forms.js:1073
    DynamicForm.bubbleItemHandler() @ app/sc/modules/ISC_Forms.js:474
    DynamicForm.elementFocus() @ app/sc/modules/ISC_Forms.js:489
    FormItem._nativeElementFocus() @ app/sc/modules/ISC_Forms.js:1065
    [a]MathFunction.invokeSuper() @ app/sc/modules/ISC_Core.js:255
    [a]MathFunction.Super() @ app/sc/modules/ISC_Core.js:247
    TextItem._nativeElementFocus() @ app/sc/modules/ISC_Forms.js:1457
    FormItem.._nativeFocusHandler() @ app/sc/modules/ISC_Forms.js:577
    FormItem._nativeFocusHandler() @ app/sc/modules/ISC_Forms.js:573

    17:11:37.353:IFCS1:WARN:Log:TypeError: _3 is null
    Stack from error.stack:
    FloatItem.handleEditorEnter() @ app/sc/modules/ISC_Forms.js:1520
    FormItem.elementFocus() @ app/sc/modules/ISC_Forms.js:1073
    DynamicForm.bubbleItemHandler() @ app/sc/modules/ISC_Forms.js:474
    DynamicForm.elementFocus() @ app/sc/modules/ISC_Forms.js:489
    FormItem._nativeElementFocus() @ app/sc/modules/ISC_Forms.js:1065
    [a]MathFunction.invokeSuper() @ app/sc/modules/ISC_Core.js:255
    [a]MathFunction.Super() @ app/sc/modules/ISC_Core.js:247
    TextItem._nativeElementFocus() @ app/sc/modules/ISC_Forms.js:1457
    FormItem.._nativeFocusHandler() @ app/sc/modules/ISC_Forms.js:577
    FormItem._nativeFocusHandler() @ app/sc/modules/ISC_Forms.js:573

    17:11:37.531:IFCS5:WARN:Log:TypeError: _3 is null
    Stack from error.stack:
    FloatItem.handleEditorEnter() @ app/sc/modules/ISC_Forms.js:1520
    FormItem.elementFocus() @ app/sc/modules/ISC_Forms.js:1073
    DynamicForm.bubbleItemHandler() @ app/sc/modules/ISC_Forms.js:474
    DynamicForm.elementFocus() @ app/sc/modules/ISC_Forms.js:489
    FormItem._nativeElementFocus() @ app/sc/modules/ISC_Forms.js:1065
    [a]MathFunction.invokeSuper() @ app/sc/modules/ISC_Core.js:255
    [a]MathFunction.Super() @ app/sc/modules/ISC_Core.js:247
    TextItem._nativeElementFocus() @ app/sc/modules/ISC_Forms.js:1457
    FormItem.._nativeFocusHandler() @ app/sc/modules/ISC_Forms.js:577
    FormItem._nativeFocusHandler() @ app/sc/modules/ISC_Forms.js:573

    Sample code:
    Code:
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.FloatItem;
    import com.smartgwt.client.widgets.form.fields.TextItem;
    import com.smartgwt.client.widgets.layout.HLayout;
    
    /**
     * Entry point classes define <code>onModuleLoad()</code>.
     */
    public class App implements EntryPoint {
    
    	public void onModuleLoad() {
    		HLayout layout = new HLayout(20);
    		final DynamicForm form = new DynamicForm();
    		form.setWidth(250);
    
    		TextItem textItem = new TextItem();
    		textItem.setTitle("Text item");
    		textItem.setHint("works well");
    		textItem.setShowHintInField(true);
    		
    		FloatItem floatItem = new FloatItem();
    		floatItem.setTitle("Float item");
    		floatItem.setHint("fail to disappear");
    		floatItem.setShowHintInField(true);
    		
    		form.setFields(textItem,floatItem);
    
    		layout.addMember(form);
    
    		layout.draw();
    	}
    }
    Last edited by Isomorphic; 30 Sep 2014, 15:56. Reason: formatted code block

    #2
    Thanks for the notification. We've made a change which we believe will address this issue.
    Regards
    Isomorphic Software

    Comment

    Working...
    X