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

[FIX] web: prevent destroying input when re-rendering FieldMonetary #52643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

awa-odoo
Copy link
Contributor

@awa-odoo awa-odoo commented Jun 9, 2020

This commit slightly modifies the re-rendering process of the FieldMonetary
widget to avoid destroying its inner input element every time.

Destroying this element, in combination with 'resetOnAnyFieldChange', would
cause an issue preventing the correct firing of the 'input' event on the
element.

That could in turn prevent a tour "Tip" from correctly "consuming" due to the
lack of input event, blocking the tour entirely.

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

This commit slightly modifies the re-rendering process of the FieldMonetary
widget to avoid destroying its inner input element every time.

Destroying this element, in combination with 'resetOnAnyFieldChange', would
cause an issue preventing the correct firing of the 'input' event on the
<input> element.

That could in turn prevent a tour "Tip" from correctly "consuming" due to the
lack of input event, blocking the tour entirely.
@awa-odoo awa-odoo force-pushed the master-fix-monetary-field-awa branch from f11e2bf to eb1dda0 Compare June 9, 2020 06:57
@C3POdoo C3POdoo added the RD research & development, internal work label Jun 9, 2020
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants