Number example fix (#7294)

* fix

* add changeset

* fix flaky functional test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Abubakar Abid 2024-02-05 08:55:10 -08:00 committed by GitHub
parent 87eedf4e70
commit d7095c4699
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/number": patch
"gradio": patch
---
fix:Number example fix

View File

@ -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");

View File

@ -9,7 +9,7 @@
class:gallery={type === "gallery"}
class:selected
>
{value ? value : ""}
{value !== null ? value : ""}
</div>
<style>