praella-agency / polaris-vue

Polaris Vue by HulkApps is a component library for Vue.js based on Shopify Polaris style guide.
https://polaris-vue.hulkapps.com
MIT License
37 stars 10 forks source link

[Bug] PSelect components,"options" props `disabled` configure is not working #65

Closed PrintNow closed 3 years ago

PrintNow commented 3 years ago

Too bad, I hope you can check the options other default configuration items of this component

My relevant environment configuration version: Vue.js: ^2.6.11 Yarn: 1.22.11 Node.js: v16.0.0


<PSelect
  label="Sort by"
  :options='[{"label":"Newest update","value":"newestUpdate"},{"label":"Oldest update","value":"oldestUpdate"},{"label":"Most spent","value":"mostSpent"},{"label":"Most orders","value":"mostOrders","disabled":true},{"label":"Last name A–Z","value":"lastNameAlpha","hidden":true},{"label":"Last name Z–A","value":"lastNameReverseAlpha"}]'
  :value="null"
  placeholder="Select"
/>

options:

[
    {
        "label":"Newest update",
        "value":"newestUpdate"
    },
    {
        "label":"Oldest update",
        "value":"oldestUpdate"
    },
    {
        "label":"Most spent",
        "value":"mostSpent"
    },
    {
        "label":"Most orders",
        "value":"mostOrders",
        "disabled":true// This configuration does not work
    },
    {
        "label":"Last name A–Z",
        "value":"lastNameAlpha",
        "hidden":true
    },
    {
        "label":"Last name Z–A",
        "value":"lastNameReverseAlpha"
    }
]
uttam-praella commented 3 years ago

@PrintNow Thank you for reporting the bug here, could you please specify which version you are currently using? This issue was raised in 2.3.2 release and we have fixed it on 2.3.3.

Thanks

PrintNow commented 3 years ago

@uttam-hulkapps

Sorry, I am using version 2.3.2, I will update now

uttam-praella commented 3 years ago

@PrintNow Thank you for confirmation, closing it.