Skip to content

Commit

Permalink
Fixed #1710 - Typo in tabIndex property name
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Dec 15, 2020
1 parent f93c8a3 commit 0e65f81
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/autocomplete/AutoComplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface AutoCompleteProps {
maxlength?: number;
size?: number;
appendTo?: any;
tabindex?: number;
tabIndex?: number;
autoFocus?: boolean;
tooltip?: any;
tooltipOptions?: TooltipOptions;
Expand Down
8 changes: 4 additions & 4 deletions src/components/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class AutoComplete extends Component {
maxlength: null,
size: null,
appendTo: null,
tabindex: null,
tabIndex: null,
autoFocus: false,
tooltip: null,
tooltipOptions: null,
Expand Down Expand Up @@ -89,7 +89,7 @@ export class AutoComplete extends Component {
maxlength: PropTypes.number,
size: PropTypes.number,
appendTo: PropTypes.any,
tabindex: PropTypes.number,
tabIndex: PropTypes.number,
autoFocus: PropTypes.bool,
tooltip: PropTypes.string,
tooltipOptions: PropTypes.object,
Expand Down Expand Up @@ -615,7 +615,7 @@ export class AutoComplete extends Component {
defaultValue={this.formatValue(this.props.value)} role="searchbox" aria-autocomplete="list" aria-controls={this.listId}
aria-labelledby={this.props.ariaLabelledBy} className={inputClassName} style={this.props.inputStyle} autoComplete="off"
readOnly={this.props.readonly} disabled={this.props.disabled} placeholder={this.props.placeholder} size={this.props.size}
maxLength={this.props.maxlength} tabIndex={this.props.tabindex}
maxLength={this.props.maxlength} tabIndex={this.props.tabIndex}
onBlur={this.onInputBlur} onFocus={this.onInputFocus} onChange={this.onInputChange}
onMouseDown={this.props.onMouseDown} onKeyUp={this.props.onKeyUp} onKeyDown={this.onInputKeyDown}
onKeyPress={this.props.onKeyPress} onContextMenu={this.props.onContextMenu}
Expand Down Expand Up @@ -643,7 +643,7 @@ export class AutoComplete extends Component {
<li className="p-autocomplete-input-token">
<input ref={(el) => this.inputEl = el} type={this.props.type} disabled={this.props.disabled} placeholder={this.props.placeholder}
role="searchbox" aria-autocomplete="list" aria-controls={this.listId} aria-labelledby={this.props.ariaLabelledBy}
autoComplete="off" tabIndex={this.props.tabindex} onChange={this.onInputChange} id={this.props.inputId} name={this.props.name}
autoComplete="off" tabIndex={this.props.tabIndex} onChange={this.onInputChange} id={this.props.inputId} name={this.props.name}
style={this.props.inputStyle} className={this.props.inputClassName} maxLength={this.props.maxlength}
onKeyUp={this.props.onKeyUp} onKeyDown={this.onInputKeyDown} onKeyPress={this.props.onKeyPress}
onFocus={this.onMultiInputFocus} onBlur={this.onMultiInputBlur} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/captcha/Captcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Captcha extends Component {
theme: PropTypes.string,
type: PropTypes.string,
size: PropTypes.string,
tabindex: PropTypes.number,
tabIndex: PropTypes.number,
language: PropTypes.string,
onResponse: PropTypes.func,
onExpire: PropTypes.func
Expand Down
4 changes: 2 additions & 2 deletions src/components/colorpicker/ColorPicker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ interface ColorPickerProps {
format?: string;
appendTo?: any;
disabled?: boolean;
tabindex?: string;
tabIndex?: string;
inputId?: string;
tooltip?: any;
tooltipOptions?: TooltipOptions;
onChange?(value: any, target: {name: string, id: string, value: any}): void;
}

export class ColorPicker extends React.Component<ColorPickerProps,any> {}
export class ColorPicker extends React.Component<ColorPickerProps,any> {}
2 changes: 1 addition & 1 deletion src/components/inputmask/InputMask.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface InputMaskProps {
placeholder?: string;
size?: number;
maxlength?: number;
tabindex?: number;
tabIndex?: number;
disabled?: boolean;
readonly?: boolean;
name?: string;
Expand Down
6 changes: 3 additions & 3 deletions src/components/inputmask/InputMask.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class InputMask extends Component {
placeholder: null,
size: null,
maxlength: null,
tabindex: null,
tabIndex: null,
disabled: false,
readonly: false,
name: null,
Expand All @@ -48,7 +48,7 @@ export class InputMask extends Component {
placeholder: PropTypes.string,
size: PropTypes.number,
maxlength: PropTypes.number,
tabindex: PropTypes.number,
tabIndex: PropTypes.number,
disabled: PropTypes.bool,
readonly: PropTypes.bool,
name: PropTypes.string,
Expand Down Expand Up @@ -605,7 +605,7 @@ export class InputMask extends Component {
let inputMaskClassName = classNames('p-inputmask', this.props.className);
return (
<InputText id={this.props.id} ref={(el) => this.input = ReactDOM.findDOMNode(el)} type={this.props.type} name={this.props.name} style={this.props.style} className={inputMaskClassName} placeholder={this.props.placeholder}
size={this.props.size} maxLength={this.props.maxlength} tabIndex={this.props.tabindex} disabled={this.props.disabled} readOnly={this.props.readonly}
size={this.props.size} maxLength={this.props.maxlength} tabIndex={this.props.tabIndex} disabled={this.props.disabled} readOnly={this.props.readonly}
onFocus={this.onFocus} onBlur={this.onBlur} onKeyDown={this.onKeyDown} onKeyPress={this.onKeyPress}
onInput={this.onInput} onPaste={this.handleInputChange} required={this.props.required} aria-labelledby={this.props.ariaLabelledBy} />
);
Expand Down
2 changes: 1 addition & 1 deletion src/showcase/autocomplete/AutoCompleteDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ itemTemplate(item) {
<td>DOM element instance where the overlay panel should be mounted.</td>
</tr>
<tr>
<td>tabindex</td>
<td>tabIndex</td>
<td>number</td>
<td>null</td>
<td>Index of the element in tabbing order.</td>
Expand Down
2 changes: 1 addition & 1 deletion src/showcase/captcha/CaptchaDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ showResponse(response) {
<td>tabIndex</td>
<td>number</td>
<td>0</td>
<td>The tabindex of the widget and challenge.</td>
<td>The tabIndex of the widget and challenge.</td>
</tr>
<tr>
<td>language</td>
Expand Down
2 changes: 1 addition & 1 deletion src/showcase/inputmask/InputMaskDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ import { InputMask } from 'primereact/inputmask';
<td>Maximum number of character allows in the input field.</td>
</tr>
<tr>
<td>tabindex</td>
<td>tabIndex</td>
<td>number</td>
<td>null</td>
<td>Specifies tab order of the element.</td>
Expand Down
2 changes: 1 addition & 1 deletion src/showcase/inputnumber/InputNumberDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ Vertical
<td>When present, it specifies that an input field must be filled out before submitting the form.</td>
</tr>
<tr>
<td>tabindex</td>
<td>tabIndex</td>
<td>number</td>
<td>null</td>
<td>Index of the element in tabbing order.</td>
Expand Down

0 comments on commit 0e65f81

Please sign in to comment.