Skip to content

Keyboard fixes - #11586

Merged
manucorporat merged 1 commit into
ionic-team:masterfrom
manucorporat:keyboard-fixes
Jun 12, 2017
Merged

manucorporat merged 1 commit into
ionic-team:masterfrom
manucorporat:keyboard-fixes

Conversation

@manucorporat

@manucorporat manucorporat commented May 9, 2017 •

Copy link
Copy Markdown
Contributor

DO NOT MERGE

fixes #7047
fixes #9699
fixes #11566
fixes #11484
fixes #11389
fixes #11325
fixes #11291
fixes #11251 ?
fixes #10552
fixes #10393
fixes #10183
fixes #10187

Comment thread src/components/datetime/datetime.ts Outdated
'ion-button="item-cover" ' +
'[attr.aria-labelledby]="_labelId" ' +
'[attr.aria-disabled]="_disabled" ' +
'(click)="_click($event)" ' +

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

pointer-events: auto;
}


Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

Comment thread src/components/item/item-sliding.ts Outdated
}
if (openAmount === 0) {
this._tmr = platform.timeout(() => {
// change in the code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

Comment thread src/components/radio/radio-button.ts Outdated
}
}

initFocus() { }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert


@HostListener('click', ['$event'])
_click(ev: UIEvent) {
if (ev.detail === 0) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review, ask @adamdbradley

Comment thread src/util/base-input.ts
/**
* @hidden
*/
focusNext() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is focusNext() used? need to review it
how does it interact between input, toggle, checkbox (look at items/inputs)

Comment thread src/util/form.ts Outdated
const inputs = this._inputs;
let index = this._inputs.indexOf(currentInput) + 1;
if (index > 0 && index < inputs.length) {
let nextInput = inputs[index];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use var

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add unit tests! make sure I didn't break anything

Comment thread src/util/scroll-view.ts
this._eventsEnabled = true;
}

setScrolling(isScrolling: boolean, ev: ScrollEvent) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review with @adamdbradley (explain use case)
add support for JS-scrolling? maybe not needed

add new unit tests

Comment thread src/components/input/input.ts Outdated
'<textarea #textInput *ngIf="_isTextarea" class="text-input" ' +
'[(ngModel)]="value" ' +
'(blur)="onBlur()" ' +
'(focus)="onFocus()" ' +

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could use non-zoned focusin/focusout programatically!!

this._usePadding = config.getBoolean('scrollPadding', this._useAssist);

if (elementRef.nativeElement.tagName === 'ION-TEXTAREA') {
this._type = TEXTAREA;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure type has the correct value.

add unit test


@HostListener('click', ['$event'])
_click(ev: UIEvent) {
// do not continue if the click event came from a form submit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review, ask @adamdbradley

Comment thread src/util/base-input.ts Outdated
this._isFocus = true;
console.debug('BaseInput: focused:', this);
this._form && this._form.setAsFocused(this);
this._inputFocusChanged(true);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might not need _inputFocusChanged

@Khalid-Nowaf

Khalid-Nowaf commented May 26, 2017 •

Copy link
Copy Markdown

Hi @manucorporat, do you think this PR can fix #11745 ?

@manucorporat
manucorporat force-pushed the keyboard-fixes branch 6 times, most recently from f844f6c to 078dc62 Compare June 8, 2017 17:35
@manucorporat
manucorporat force-pushed the keyboard-fixes branch 7 times, most recently from 7928f65 to 574ee31 Compare June 12, 2017 20:16
@manucorporat
manucorporat merged commit c10f72b into ionic-team:master Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment