Skip to content

Commit

Permalink
Release v8.0.2 (#1441)
Browse files Browse the repository at this point in the history
* Release v8.0.2
  • Loading branch information
aliaksei-chumakou authored Nov 13, 2020
1 parent f2df9ad commit 8b63d64
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change history for stripes-components

## [8.0.2](https://github.com/folio-org/stripes-components/tree/v8.0.2) (2020-11-13)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v8.0.1...v8.0.2)

* Fix focusing SearchField when loading - make it readOnly. Refs STCOM-762

## [8.0.1](https://github.com/folio-org/stripes-components/tree/v8.0.1) (2020-11-12)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v8.0.0...v8.0.1)

Expand Down
3 changes: 2 additions & 1 deletion lib/SearchField/SearchField.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const SearchField = (props) => {
{...rest}
aria-label={rest['aria-label'] || ariaLabel}
clearFieldId={clearSearchId}
disabled={disabled || loading}
disabled={disabled}
focusedClass={css.isFocused}
id={id}
hasClearIcon={typeof onClear === 'function' && loading !== true}
Expand All @@ -121,6 +121,7 @@ const SearchField = (props) => {
startControl={!hasSearchableIndexes ? searchIcon : null}
type="search"
value={value || ''}
readOnly={loading || rest.readOnly}
/>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion lib/SearchField/tests/SearchField-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('SearchField', () => {

it('applies the supplied id prop to the input', () => {
expect(searchField.id).to.equal('searchFieldTest');
expect(searchField.inputReadOnly).to.be.null;
});
});

Expand Down Expand Up @@ -58,7 +59,7 @@ describe('SearchField', () => {
});

it('input and select are disabled', () => {
expect(searchField.isDisabled).to.be.true;
expect(searchField.inputReadOnly).to.equal('');
expect(searchField.isDisabledIndex).to.be.true;
});
});
Expand Down
1 change: 1 addition & 0 deletions lib/SearchField/tests/interactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export default interactor(class SearchFieldInteractor {
selectIndex = selectable('select');
placeholder = attribute('input', 'placeholder');
isDisabled = property('input', 'disabled');
inputReadOnly = attribute('input', 'readonly');
isDisabledIndex = property('select', 'disabled');
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/stripes-components",
"version": "8.0.1",
"version": "8.0.2",
"description": "Component library for building Stripes applications.",
"license": "Apache-2.0",
"repository": "folio-org/stripes-components",
Expand Down

0 comments on commit 8b63d64

Please sign in to comment.