Skip to content

Commit

Permalink
Update interactive-elements.js (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruchika4 authored Dec 1, 2023
1 parent 21cd52d commit 424c9bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export async function createPromptField(prompt, buttonText, mode, trackingValue
const { default: defineDeviceByScreenSize } = await import('../../scripts/decorate.js');
const promptField = createTag('div', { id: 'promptbar', class: 'promptbar' });
let promptInput = '';
if (mode !== 'genfill') promptInput = createTag('input', { class: 'prompt-text', id: 'promptinput', placeholder: `${prompt.trim()}`, maxlength: '250' });
if (mode !== 'genfill') promptInput = createTag('input', { class: 'prompt-text', id: 'promptinput', placeholder: `${prompt.trim()}`, maxlength: '250', autofocus: 'true' });
const promptButton = createTag('button', { class: 'con-button blue button-justified-mobile', id: 'promptbutton', 'daa-ll': trackingValue }, `${buttonText.trim()}`);
if (mode === 'light') {
promptField.classList.add('light');
Expand Down

0 comments on commit 424c9bb

Please sign in to comment.