LaunchpadFormView.focusedElementScript should handle field prefix itself
Bug #57621 reported by
Francis J. Lacoste
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
James Henstridge |
Bug Description
The LaunchpadFormView has some support for setting the focus on a particular widget.
The API is to have that widget specified using the focused_element_id. But if we specify the name of the field directly, it won't work. We need to add the default prefix to make it work. It would be better if that prefix handling was done by focusedElementS
In other words, I expect the following to
focused_
render
setFocusByEle
when the form prefix is set to field.
To post a comment you must log in.
That would be pretty weird behaviour given the attribute is called focused_element_id.
It would make sense if the attribute was focused_field or focused_widget though. Maybe one of those would be better.