From d3e8c6c9a75491b730b339f15a700e38688c4c44 Mon Sep 17 00:00:00 2001 From: Caroline Desprat Date: Tue, 27 Aug 2024 08:17:57 +0000 Subject: [PATCH] fix: add inputPlaceholder props --- src/components/AppModal/AppModalPrompt.vue | 4 ++-- src/stories/components/AppModal/AppModalPrompt.stories.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/AppModal/AppModalPrompt.vue b/src/components/AppModal/AppModalPrompt.vue index 3f16e573df..e17c314cae 100644 --- a/src/components/AppModal/AppModalPrompt.vue +++ b/src/components/AppModal/AppModalPrompt.vue @@ -9,7 +9,7 @@ defineProps({ type: String, default: 'text' }, - placeholder: { + inputPlaceholder: { type: String, default: null }, @@ -53,7 +53,7 @@ const onOk = () => { :invalid-feedback="inputInvalidFeedback" :state="inputState" > - +

{{ description }} diff --git a/src/stories/components/AppModal/AppModalPrompt.stories.js b/src/stories/components/AppModal/AppModalPrompt.stories.js index 3c74b9db45..850c692e8c 100644 --- a/src/stories/components/AppModal/AppModalPrompt.stories.js +++ b/src/stories/components/AppModal/AppModalPrompt.stories.js @@ -60,6 +60,7 @@ export const InputError = { okTitle: 'Create alert', cancelTitle: 'Cancel', inputValue: 'bad alert name', + inputPlaceholder: 'Type here', description: 'You will find your saved searches in the left menu in Explore > Alerts', inputState: false, inputInvalidFeedback: 'Invalid alert name'