[BUG] Not able to select a 0 integer option from props
See original GitHub issueDescribe the bug
I’m not able to select an option from props when the value
of that is integer
0
To Reproduce Steps to reproduce the behavior:
- Create an action with prop type
integer
Something like this
export default {
key: "my_app-select-type",
name: "Select a type",
description: "Select a type",
type: "action",
version: "0.0.1",
props: {
type: {
type: "integer",
label: "Type",
description: "Please select a type.",
options() {
return [
{
label: "Text",
value: 0,
},
];
},
},
},
async run() {
return {};
},
};
- Then publish it with your own account
- Test it like in the screenshot
Expected behavior
I would expect to select the option with integer 0
as the value
.
Screenshots https://user-images.githubusercontent.com/506051/137963337-83b33d31-a334-42e0-9db7-28a8af2c969c.mov
Desktop (please complete the following information):
- OS: macOS BigSur 11.6 (20G165)
- Browser: Chrome
- Version: 94.0.4606.81 (Official Build) (arm64)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Numeric Values with Multi-Select option not working #1476
Unable to get multi select working with options that have integers as values. This would be particularly useful if trying to collect a...
Read more >Unable to select values from the list after giving inputValue ...
When I'm not giving inputValue, i'm unable to access the select components value via e.target.value in handleBlur function which takes care of ...
Read more >How To Customize React Components with Props
In this tutorial, you'll create custom components by passing props to your component. Props are arguments that you provide to a JSX element....
Read more >How to Use PropTypes in React - freeCodeCamp
We can use PropTypes to validate any data we are receiving from props. But before using it we will have to import it...
Read more ><input type="number"> - HTML: HyperText Markup Language
The default stepping value for number inputs is 1 , allowing only integers to be entered—unless the stepping base is not an integer....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jcortes Could you check to see if this is still an issue in the new workflow builder?
Confirmed, thanks for raising @jcortes