File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/core/components/settings/new-panel Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ export function ManualClasses() {
161161 } , 0 ) ;
162162 } ,
163163 onKeyDown : ( e : any ) => {
164- if ( e . key === "Enter" && newCls . trim ( ) !== "" && suggestions . length === 0 ) {
164+ if ( e . key === "Enter" && newCls . trim ( ) !== "" ) {
165+ e . preventDefault ( ) ;
165166 addNewClasses ( ) ;
166167 }
167168 } ,
@@ -225,7 +226,6 @@ export function ManualClasses() {
225226 getSuggestionValue = { getSuggestionValue }
226227 renderSuggestion = { renderSuggestion }
227228 inputProps = { inputProps }
228- highlightFirstSuggestion = { true }
229229 onSuggestionSelected = { ( _e , { suggestionValue } ) => {
230230 const storageFormat = convertToStorageFormat ( suggestionValue ) ;
231231 addClassesToBlocks ( selectedIds , [ storageFormat ] , true ) ;
You can’t perform that action at this time.
0 commit comments