]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19604 Fixing events add and change on keyboard click
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>
Mon, 26 Jun 2023 08:14:15 +0000 (10:14 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Jun 2023 20:03:54 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddEventForm.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeEventForm.tsx

index be1d457f3aa52cae7dfbfe1efd76e86fa23efa9b..fa0fa510e0e920eaebbc36adc53926f9908f6a18 100644 (file)
@@ -51,17 +51,18 @@ export default class AddEventForm extends React.PureComponent<Props, State> {
         headerTitle={translate(this.props.addEventButtonText)}
         onClose={this.props.onClose}
         body={
-          <div>
+          <form id="add-event-form">
             <label htmlFor="name">{translate('name')}</label>
             <InputField
               id="name"
+              className="sw-my-2"
               autoFocus
               onChange={this.handleNameChange}
               type="text"
               value={this.state.name}
               size="full"
             />
-          </div>
+          </form>
         }
         primaryButton={
           <ButtonPrimary
index 195b0b88f5144b8c37bbfbfae863d51e149f38ea..ddc1bf783dbbd9c059372b44dcb38139dfed4c9c 100644 (file)
@@ -55,17 +55,18 @@ export default class ChangeEventForm extends React.PureComponent<Props, State> {
         headerTitle={this.props.header}
         onClose={this.props.onClose}
         body={
-          <div>
+          <form id="change-event-form">
             <label htmlFor="name">{translate('name')}</label>
             <InputField
               id="name"
+              className="sw-my-2"
               autoFocus
               onChange={this.changeInput}
               type="text"
               value={name}
               size="full"
             />
-          </div>
+          </form>
         }
         primaryButton={
           <ButtonPrimary