mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
style(components): rename variables and methods for consistency
- updates ele to el - renames functions under prop did change - documents events and some props - adds private / protected - removes underscores from range
This commit is contained in:
@ -241,11 +241,11 @@ export function focusOutActiveElement() {
|
||||
activeElement && activeElement.blur && activeElement.blur();
|
||||
}
|
||||
|
||||
export function isTextInput(ele: any) {
|
||||
return !!ele &&
|
||||
(ele.tagName === 'TEXTAREA'
|
||||
|| ele.contentEditable === 'true'
|
||||
|| (ele.tagName === 'INPUT' && !(NON_TEXT_INPUT_REGEX.test(ele.type))));
|
||||
export function isTextInput(el: any) {
|
||||
return !!el &&
|
||||
(el.tagName === 'TEXTAREA'
|
||||
|| el.contentEditable === 'true'
|
||||
|| (el.tagName === 'INPUT' && !(NON_TEXT_INPUT_REGEX.test(el.type))));
|
||||
}
|
||||
export const NON_TEXT_INPUT_REGEX = /^(radio|checkbox|range|file|submit|reset|color|image|button)$/i;
|
||||
|
||||
|
Reference in New Issue
Block a user