Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
experience_builder
Commits
a7af829c
Commit
a7af829c
authored
4 months ago
by
Parth Bhattacharya
Browse files
Options
Downloads
Patches
Plain Diff
issue-3498485: fixed false appearing in input text fields
parent
7ce28dee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/src/components/form/inputBehaviors.tsx
+4
-1
4 additions, 1 deletion
ui/src/components/form/inputBehaviors.tsx
with
4 additions
and
1 deletion
ui/src/components/form/inputBehaviors.tsx
+
4
−
1
View file @
a7af829c
...
...
@@ -400,12 +400,15 @@ const InputBehaviorsEntityForm = (
const
parseNewValue
=
(
e
:
React
.
ChangeEvent
)
=>
{
const
target
=
e
.
target
as
HTMLInputElement
;
if
(
target
.
value
)
{
// If the target is an input element, return its value
if
(
target
.
value
!==
undefined
)
{
return
target
.
value
;
}
// If the target is a checkbox or radio button, return its checked
if
(
'
checked
'
in
target
)
{
return
target
.
checked
;
}
// If the target is neither an input element nor a checkbox/radio button, return null
return
null
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment