Skip to content

Commit

Permalink
Number example fix (#7294)
Browse files Browse the repository at this point in the history
* fix

* add changeset

* fix flaky functional test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
abidlabs and gradio-pr-bot committed Feb 5, 2024
1 parent 87eedf4 commit d7095c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/ten-bananas-fall.md
@@ -0,0 +1,6 @@
---
"@gradio/number": patch
"gradio": patch
---

fix:Number example fix
2 changes: 1 addition & 1 deletion js/app/test/on_listener_test.spec.ts
Expand Up @@ -6,7 +6,7 @@ test("On listener works.", async ({ page }) => {
const trigger1_box = await page.locator("textarea").nth(2);
const trigger2_box = await page.locator("textarea").nth(3);

name_box.fill("Jimmy");
await name_box.fill("Jimmy");
await page.click("text=Greet");
await expect(output_box).toHaveValue("Hello Jimmy!");
await expect(trigger1_box).toHaveValue("Button");
Expand Down
2 changes: 1 addition & 1 deletion js/number/Example.svelte
Expand Up @@ -9,7 +9,7 @@
class:gallery={type === "gallery"}
class:selected
>
{value ? value : ""}
{value !== null ? value : ""}
</div>

<style>
Expand Down

0 comments on commit d7095c4

Please sign in to comment.