mirror of https://github.com/rancher/ui.git
25 lines
664 B
JavaScript
25 lines
664 B
JavaScript
import Checkbox from '@ember/component/checkbox';
|
|
import TextArea from '@ember/component/text-area';
|
|
import TextField from '@ember/component/text-field';
|
|
import SafeStyle from 'ui/mixins/safe-style';
|
|
|
|
export function initialize(/* application */) {
|
|
// Allow style to be bound on inputs
|
|
TextField.reopen(SafeStyle);
|
|
TextArea.reopen(SafeStyle);
|
|
Checkbox.reopen(SafeStyle);
|
|
|
|
// Disable iOS auto-capitalization
|
|
//
|
|
TextField.reopen({
|
|
attributeBindings: ['autocapitalize', 'spellcheck', 'autocomplete', 'data-testid'],
|
|
autocomplete: 'off',
|
|
autocapitalize: 'none',
|
|
});
|
|
}
|
|
|
|
export default {
|
|
name: 'extend-ember-input',
|
|
initialize
|
|
};
|