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 Remove required mark #9 changes #13

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Blueclaus13
Copy link

I did some corrections issue #9

@netlify
Copy link

netlify bot commented Feb 28, 2023

Deploy Preview for happeningsoflife ready!

Name Link
🔨 Latest commit 6b77e5f
🔍 Latest deploy log https://app.netlify.com/sites/happeningsoflife/deploys/63fe7555ee269400086ece74
😎 Deploy Preview https://deploy-preview-13--happeningsoflife.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@s-ashwin
Copy link
Owner

image

Save tooltip misaligned @Blueclaus13

<Button key="cancelButton" onClick={()=>{closeModal()}}>Cancel</Button>,
<Tooltip key="saveTooltip" placement="top" title="Save available when title and date are filled in" >
<Button key="saveButton"type="primary" onClick={() =>{onFinish(form.getFieldsValue());}}
disabled={valueDate !== "" && valueTitle !== "" ? false : true}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of maintaining two states, we can get the values by using form.getFieldValue() provided by antd.

Can you please check @Blueclaus13

@s-ashwin
Copy link
Owner

s-ashwin commented Mar 7, 2023

@Blueclaus13
I have few suggestions

  1. The tooltip of save button should not be shown once the button is enabled. Tooltip is only for disabled state

  2. Change the tooltip text to "Please fill in the required fields"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants