Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 47f71d7

Browse files
authored
Merge pull request #1203 from LFedorov/patch-1
Fix ControlProps definition
2 parents 346e93c + 5fe0159 commit 47f71d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

react-redux-form.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ export interface ControlProps<T> extends React.HTMLProps<T> {
237237
* Signifies that the control is a toggle (e.g., a checkbox or a radio). If true, then some optimizations are made.
238238
*/
239239
isToggle?: boolean;
240+
/**
241+
* Signifies that the field should be updated when Enter is pressed
242+
* @default true
243+
*/
244+
updateOnEnter?: boolean;
240245
}
241246

242247
export class Control<T> extends React.Component<ControlProps<T>, {}> {

0 commit comments

Comments
 (0)