question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Not able to select a 0 integer option from props

See original GitHub issue

Describe 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:

  1. 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 {};
  },
};
  1. Then publish it with your own account
  2. 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dylburgercommented, Feb 22, 2022

@jcortes Could you check to see if this is still an issue in the new workflow builder?

1reaction
dylburgercommented, Oct 20, 2021

Confirmed, thanks for raising @jcortes

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found