File tree Expand file tree Collapse file tree 3 files changed +24
-32
lines changed Expand file tree Collapse file tree 3 files changed +24
-32
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,12 @@ function EditableInput({
2828 const { t } = useTranslation ( ) ;
2929 React . useEffect ( ( ) => {
3030 if ( isEditing ) {
31- inputRef . current ?. focus ( ) ;
31+ const inputElement = inputRef . current ;
32+ inputElement . setSelectionRange (
33+ inputElement . value . length ,
34+ inputElement . value . length
35+ ) ;
36+ inputElement . focus ( ) ;
3237 }
3338 } , [ isEditing ] ) ;
3439 React . useEffect ( ( ) => {
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import PropTypes from 'prop-types' ;
3-
4- import CheckIcon from '../../../../images/check_encircled.svg' ;
53import CloseIcon from '../../../../images/close.svg' ;
4+ import CheckIcon from '../../../../images/check_encircled.svg' ;
65
76const Icons = ( { isAdded } ) => {
87 const classes = [
@@ -21,12 +20,6 @@ const Icons = ({ isAdded }) => {
2120 focusable = "false"
2221 />
2322 < CheckIcon
24- className = "quick-add__in-icon"
25- role = "img"
26- aria-label = "Descending"
27- focusable = "false"
28- />
29- < CloseIcon
3023 className = "quick-add__add-icon"
3124 role = "img"
3225 aria-label = "Descending"
Original file line number Diff line number Diff line change 8383 }
8484}
8585
86- .quick-add__add-icon {
87- transform : rotate (45deg );
88- }
89-
90- .quick-add__item :hover ,
91- .quick-add__item-toggle :hover ,
86+ .quick-add__item ,
87+ .quick-add__item-toggle ,
9288.quick-add__item-toggle :focus {
9389 cursor : pointer ;
90+
9491 @include themify () {
9592 & .quick-add__icon path {
9693 fill : getThemifyVariable (' table-button-hover-color' );
10097 fill : getThemifyVariable (' table-button-background-hover-color' );
10198 }
10299 }
100+ }
103101
104- & .quick-add__in-icon {
105- display : none ;
102+ .quick-add__icon--in-collection {
103+ .quick-add__remove-icon {
104+ display : inline-block ;
106105 }
107106
108- & .quick-add__icon--in-collection {
109- .quick-add__remove-icon {
110- display : inline-block ;
111- }
112-
113- .quick-add__add-icon {
114- display : none ;
115- }
107+ .quick-add__add-icon {
108+ display : none ;
116109 }
110+ }
117111
118- & .quick-add__icon--not-in-collection {
119- .quick-add__add-icon {
120- display : inline-block ;
121- }
112+ .quick-add__icon--not-in-collection {
113+ .quick-add__add-icon {
114+ display : inline-block ;
115+ }
122116
123- .quick-add__remove-icon {
124- display : none ;
125- }
117+ .quick-add__remove-icon {
118+ display : none ;
126119 }
127120}
121+
You can’t perform that action at this time.
0 commit comments