Hi,
Afaics the latest nightly (25-9) of the 8.1 stream has a js error. This method is defined in TextItem:
_shouldSelectOnFocus : function () {
But it is called in 2 locations without the underscore in TextItem:
var selectOnFocus = this.shouldSelectOnFocus();
So seems a typo. If I can ask, is it possible to implement this method without the underscore? It makes overriding possible. I have a case where selectonfocus should happen also after a mouse event, I think a common case:
I open a form after a mouse click on a row, the form field which gets the focus should be selected
Currently this does not happen because the shouldSelectOnFocus sees that it is a mouseevent and does not do selectOnFocus. I can override this behavior by customizing the shouldSelectOnFocus method. So making it overridable really helps here.
gr. Martin
Afaics the latest nightly (25-9) of the 8.1 stream has a js error. This method is defined in TextItem:
_shouldSelectOnFocus : function () {
But it is called in 2 locations without the underscore in TextItem:
var selectOnFocus = this.shouldSelectOnFocus();
So seems a typo. If I can ask, is it possible to implement this method without the underscore? It makes overriding possible. I have a case where selectonfocus should happen also after a mouse event, I think a common case:
I open a form after a mouse click on a row, the form field which gets the focus should be selected
Currently this does not happen because the shouldSelectOnFocus sees that it is a mouseevent and does not do selectOnFocus. I can override this behavior by customizing the shouldSelectOnFocus method. So making it overridable really helps here.
gr. Martin
Comment