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

url always null #143

Closed
new-user-name opened this issue Dec 19, 2022 · 1 comment
Closed

url always null #143

new-user-name opened this issue Dec 19, 2022 · 1 comment

Comments

@new-user-name
Copy link

new-user-name commented Dec 19, 2022

Describe the bug
Can not change url

To Reproduce
My setup()

setup() {
    const query = ref('');
    const suggestion = ref(undefined);
    return {
      token: import.meta.env.VITE_APP_DADATA_API_KEY as string,
      query,
      url: 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/findById/party',
      suggestion : {
        count: 3,
        url: 'https://suggestions.dadata.ru/suggestions/api/4_1/rs/findById/party'
      },
    };
  },

Expected behavior
url is expected to be set

Screenshots
But it doesn't (see attach).

Desktop (please complete the following information):

Windows 11, 
"typescript": "^4.6.3",
        "vue": "^3.2.45",
        "vue-dadata": "^3.0.0-beta.9",
        "vue-debounce": "^4.0.0",
        "vue-loader": "^17.0.1",
        "vue-word-highlighter": "^1.1.2"

Untitled-1

It's strange, but the token is somehow set, so I can change it

@new-user-name
Copy link
Author

It seems url has to be passed as prop, not as property of suggestion...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant