Opened 6 years ago

Closed 4 years ago

#17012 closed enhancement (patchwelcome)

FilteringSelect with JsonRest store does not allow empty selection

Reported by: gottocode Owned by:
Priority: undecided Milestone: 1.13
Component: Dijit - Form Version: 1.8.3
Keywords: Cc:
Blocked By: Blocking:

Description

I am using a FilteringSelect? widget backed by a JsonRest? datastore.

var store = new JsonRest?({

accepts:"application/json", idProperty: 'itm_id', timeOut: 30, target: "/path/toresource/"

});

var fSelect = new FilteringSelect?({

id: "usr_id", labelAttr: "itm_lbl", name: "usr_id", store: store, searchAttr: "itm_lbl", pageSize: 10, required: false

}, "divInTheMarkup");

I've set the required parameter on the FilteringSelect? to false. Open the drop down, select an item, highlight the text in the textbox and delete it. Hit the tab button or click outside the control and it will load the first list item. Once an item has been selected from the list it is impossible to leave the control with the textbox empty.

This behavior does not occur when a Memory Store is used. The control then functions correctly allowing the textbox to be cleared and remain so after loss of focus.

Attachments (1)

issue-17012.diff (642 bytes) - added by psbucky 3 years ago.
Don't select first item on blank input

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by Douglas Hays

Owner: Douglas Hays deleted
Status: newassigned

comment:2 Changed 6 years ago by Douglas Hays

Status: assignedopen

comment:3 Changed 4 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: openclosed

Given that no one has shown interest in creating a patch in the past 2+ years, I'm closing this as patchwelcome.

Changed 3 years ago by psbucky

Attachment: issue-17012.diff added

Don't select first item on blank input

Note: See TracTickets for help on using tickets.