Skip to content

Commit

Permalink
Fix/6641 (#7337)
Browse files Browse the repository at this point in the history
* Fix "Search for an asset" on Media Library loses focus
while typing

Signed-off-by: Laurent Comte <laurent.comte@gmail.com>

* Update the provider loggin doc + display absolute redirect uri in front

Signed-off-by: Pierre No毛l <petersg83@gmail.com>

* update grant + doc twitter

Signed-off-by: Pierre No毛l <petersg83@gmail.com>

* refacto

Signed-off-by: Pierre No毛l <petersg83@gmail.com>

* replace .fr by .com

Signed-off-by: Pierre No毛l <petersg83@gmail.com>

* move a tip

Signed-off-by: Pierre No毛l <petersg83@gmail.com>

* Specify that only grant providers are supported

Signed-off-by: Pierre No毛l <petersg83@gmail.com>

Co-authored-by: Pierre No毛l <petersg83@gmail.com>
  • Loading branch information
laurentcomte and petersg83 committed Aug 12, 2020
1 parent f6f5095 commit 086677b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ import SearchInfo from '../SearchInfo';
import Clear from './Clear';
import Wrapper from './Wrapper';

const HeaderSearch = ({ label, name, onChange, onClear, placeholder, value, className }) => {
const HeaderSearch = ({
label,
name,
onChange,
onClear,
placeholder,
value,
className,
autoFocus,
}) => {
return (
<Wrapper className={className}>
<div>
Expand All @@ -20,6 +29,7 @@ const HeaderSearch = ({ label, name, onChange, onClear, placeholder, value, clas
placeholder={placeholder}
type="text"
value={value}
autoFocus={autoFocus}
/>
{value !== '' && (
<Clear onClick={onClear}>
Expand All @@ -39,6 +49,7 @@ HeaderSearch.defaultProps = {
onClear: () => {},
placeholder: 'Search for an entry',
value: '',
autoFocus: false,
};

HeaderSearch.propTypes = {
Expand All @@ -48,6 +59,7 @@ HeaderSearch.propTypes = {
onClear: PropTypes.func,
placeholder: PropTypes.string,
value: PropTypes.string,
autoFocus: PropTypes.bool,
};

export default HeaderSearch;
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const HomePageSettings = ({
placeholder={formatMessage({ id: getTrad('search.placeholder') })}
name="_q"
value={searchValue}
autoFocus="true"
/>
<ControlsWrapper>
{canUpdate && (
Expand Down

0 comments on commit 086677b

Please sign in to comment.