Skip to content

Commit 09b89d1

Browse files
authored
fix: simple disabled (#294)
1 parent f8c8c6e commit 09b89d1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Pagination.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ class Pagination extends React.Component {
233233
if ('onChange' in this.props && this.props.onChange) {
234234
this.props.onChange(current, size);
235235
}
236-
237236
};
238237

239238
handleChange = (p) => {
@@ -441,7 +440,12 @@ class Pagination extends React.Component {
441440

442441
return (
443442
<ul
444-
className={classNames(prefixCls, `${prefixCls}-simple`, className)}
443+
className={classNames(
444+
prefixCls,
445+
`${prefixCls}-simple`,
446+
{ [`${prefixCls}-disabled`]: disabled },
447+
className,
448+
)}
445449
style={style}
446450
ref={this.savePaginationNode}
447451
{...dataOrAriaAttributeProps}
@@ -465,6 +469,7 @@ class Pagination extends React.Component {
465469
<input
466470
type="text"
467471
value={currentInputValue}
472+
disabled={disabled}
468473
onKeyDown={this.handleKeyDown}
469474
onKeyUp={this.handleKeyUp}
470475
onChange={this.handleKeyUp}

0 commit comments

Comments
 (0)