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

Doc Tooltip disappears on invalid input #5857

Open
ahuang11 opened this issue Nov 12, 2023 · 0 comments
Open

Doc Tooltip disappears on invalid input #5857

ahuang11 opened this issue Nov 12, 2023 · 0 comments
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@ahuang11
Copy link
Contributor

ahuang11 commented Nov 12, 2023

import param
import panel as pn
pn.extension()

class Test(param.Parameterized):

    d = param.Dict(doc="This should not disappear")

pn.Param(Test)

Before
image

After invalid input
image

I think it's on LiteralInput:

    def _process_property_change(self, msg):
        msg = super()._process_property_change(msg)
        new_state = ''
        if 'value' in msg:
            value = msg.pop('value')
            try:
                if value == '':
                    value = ''
                elif self.serializer == 'json':
                    value = json.loads(value)
                else:
                    value = ast.literal_eval(value)
            except Exception:
                new_state = ' (invalid)'
                value = self.value
@ahuang11 ahuang11 added the TRIAGE Default label for untriaged issues label Nov 12, 2023
@philippjfr philippjfr added type: bug Something isn't correct or isn't working and removed TRIAGE Default label for untriaged issues labels Nov 26, 2023
@philippjfr philippjfr added this to the v1.3.3 milestone Nov 26, 2023
@philippjfr philippjfr modified the milestones: v1.3.3, v1.4.0 Dec 12, 2023
@philippjfr philippjfr modified the milestones: v1.4.0, v1.4.x Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants