Pages with text inputs: text input goes out of focus on every character entered. Also input is shared between pages.

Hello! We have encountered the following issue: if a text input component is used inside "pages", it will go out of focus every time a new character is entered. Another issue, is that input is also shared between input text components on different pages, until you edit each of them.

import prodigy


@prodigy.recipe('minimal-example')
def minimal_example():

    stream = (
        {
            'id': i,
            'pages': [
                {'view_id': 'text_input', 'field_id': 'user_input', 'field_placeholder': 'Enter text here...'}
                for _ in range(5)
            ]
        }
        for i in range(10)
    )

    stream_with_hashes = (
        prodigy.set_hashes(example)
        for example in stream
    )

    return {
        'dataset': 'test',
        'view_id': 'pages',
        'stream': stream_with_hashes,
    }

Are we doing something incorrectly?
Thank you

Thanks for the report – the focus thing sounds like it might be a bug so will investigate :+1:

For the inputs, you can probably work around it by using different field_ids for the different pages, maybe with the page number as a suffix so you always know how to access it? (Not sure if this should be the recommended way – I definitely see the simplicity in having the same field IDs for each page, even if it means having duplicate field IDs in a single task, which is something you normally wouldn't have.)