Opened 12 years ago

Closed 12 years ago

#3086 closed defect (fixed)

this.curve has no properties on AutoCompleter

Reported by: guest Owned by: haysmark
Priority: high Milestone: 0.9beta
Component: Dijit Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by alex)

This code:

/* on <head> */
<script type="text/javascript" 
	djConfig="isDebug: true"
	src="{% url shell.views.mediaurl %}dojo/dojo/dojo.js"></script>
<script type="text/javascript"><!--
	dojo.require("dijit.util.parser");
--></script>
<script type="text/javascript"><!--
dojo.require('dojo.data.JsonItemStore');
dojo.require('dijit.form.AutoCompleter');
--></script>
<script type="text/javascript">
var stateData = { items: [{ abbreviation: "CA", name: "California",label: "Calaforña"},{abbreviation: "FL", name: "Florida",label:"The sunshine state"}] };
var stateStore = new dojo.data.JsonItemStore( { data: stateData} );
</script>

/* on <body> */
<select
        dojoType="dijit.form.AutoCompleter"
        store="stateStore"
        searchField="name"
        keyField="abbreviation"
        labelField="label"
        labelType="text"
>
</select>

fails with an error "this.curve has no properties" on Firefox 2

Change History (4)

comment:1 Changed 12 years ago by alex

Description: modified (diff)
Milestone: 0.9beta

comment:2 Changed 12 years ago by bill

Owner: changed from bill to haysmark

comment:3 Changed 12 years ago by guest

I am using this workaround on file _DropDownTextBox.js:

try { dijit.MasterTooltip?.hide(); } catch (e) {}

on line 116, in the onblur function definition

I dunno if it's correct, but apparently it's got something to do with the fact that the MasterTooltip? is already hidden and can't be hidden twice. Am I right?

comment:4 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [8729]) Fixes #1176, #1740, #3032, #3086, #3095, #3101, #3129. Proxy commit for haysmark. Code reviewed by bill and doughays. Support for page up/down in AutoCompleterMenu?. setTextValue refactored to setDisplayedValue. Added key handler for DropDownTextBox? so DateTextbox? has basic key support. InlineEditBox? now sets isEmpty to false when the input is indeed nonempty. DropDownTextBox? no longer hides MasterTooltip? if it is already hidden. Updated test_InlineEditBox DateTextbox? and Select widgets to use the correct attributes. Cleaned up test_AutoCompleter and test_Select attributes. Consolidated onkeypress page up/down with arrow up/down. Fixed several code-style issues.

Note: See TracTickets for help on using tickets.