Opened 8 years ago
Closed 5 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)
Change History (4)
comment:1 Changed 7 years ago by
Owner: | Douglas Hays deleted |
---|---|
Status: | new → assigned |
comment:2 Changed 7 years ago by
Status: | assigned → open |
---|
comment:3 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | open → closed |
Given that no one has shown interest in creating a patch in the past 2+ years, I'm closing this as patchwelcome.