Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput 'resizable' attribute type mismatch between 'boolean' and '"x" | "y"' #138

Open
tvanriper opened this issue Nov 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@tvanriper
Copy link

Describe the Bug

You get a ts(2322) error Type 'true' is not assignable to type '"x" | "y"' when you try to use <TextInput resizable /> in your component.

Reproduction

Within a svelte component where the project has TypeScript enabled:

<script lang="ts">
  import { TextInput } from "@kahi-ui/framework";
</script>

<TextInput resizable />

Note that using resizable="x" or resizable="y" doesn't seem to be valid, as it doesn't seem to result in a resizable TextInput, but maybe I missed something.

System Info

System:
    OS: Linux 5.15 Manjaro Linux
    CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
    Memory: 4.41 GB / 15.53 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 18.10.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.19.2 - /usr/bin/npm
  Browsers:
    Chromium: 107.0.5304.87
    Firefox: 106.0.2

Additional Context

Using typescript 4.84, tslib 2.4.1, if this helps.

@tvanriper tvanriper added the bug Something isn't working label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant