forked from 0x2620/oxjs
various focus/selection fixes
This commit is contained in:
parent
a7a3f167c9
commit
ed4f7f0c2d
4 changed files with 15 additions and 9 deletions
|
|
@ -849,22 +849,22 @@ Ox.TextList = function(options, self) {
|
|||
width: width
|
||||
})
|
||||
.bind({
|
||||
blur: submit,
|
||||
mousedown: function(e) {
|
||||
// keep mousedown from reaching list
|
||||
e.stopPropagation();
|
||||
}
|
||||
},
|
||||
})
|
||||
.bindEvent({
|
||||
blur: submit,
|
||||
cancel: submit,
|
||||
submit: submit
|
||||
})
|
||||
.appendTo($cell);
|
||||
//.focusInput(true);
|
||||
setTimeout($input.focusInput, 0); // fixme: strange
|
||||
function submit() {
|
||||
var value = $input.value();
|
||||
//$input.loseFocus().remove();
|
||||
// fixme: leaky, inputs remain in focus stack
|
||||
$input.remove();
|
||||
$cell.removeClass('OxEdit')
|
||||
.css({
|
||||
// account for padding
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue